another non-X11R6 compatibility diff (gnome-libs)



gnome-libs also uses some of the GDK-masqueraded X11R6(?) keysyms that aren't
found in X11R5.

Index: gnome-libs/libgnomeui/gtkcauldron.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/gtkcauldron.c,v
retrieving revision 1.10
diff -u -r1.10 gtkcauldron.c
--- gtkcauldron.c	1998/10/02 16:22:50	1.10
+++ gtkcauldron.c	1998/10/18 01:43:19
@@ -329,7 +329,14 @@
 {
     if (!(d->options & GTK_CAULDRON_IGNOREENTER)) {
 /* FIXME: is this really necessary? : */
-	if (event->keyval == GDK_Return || event->keyval == GDK_KP_Enter || event->keyval == GDK_ISO_Enter || event->keyval == GDK_3270_Enter) {
+	if (event->keyval == GDK_Return || event->keyval == GDK_KP_Enter
+#ifdef GDK_ISO_Enter
+	    || event->keyval == GDK_ISO_Enter
+#endif
+#ifdef GDK_3270_Enter
+	    || event->keyval == GDK_3270_Enter
+#endif
+	    ) {
 	    *d->result = GTK_CAULDRON_ENTER;
 	    gtk_cauldron_get_results (*d->r);
 	    gtk_main_quit ();

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
electrical and computer engineering
carnegie mellon university			   (bsa@kf8nh is still valid.)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]