patch for GtkDialog



Hi,

I have attached a patch that fixes bug #74221.  Maybe there is a better
solution (it could return GTK_RESPONSE_CANCEL, I guess).  Let me know if
this is ok.

Thanks,
James


? gtk_jwillcox_dialog_patch_v1.diff
? gtk/.gtkdialog.c.swp
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtk+/ChangeLog,v
retrieving revision 1.3305
diff -u -5 -r1.3305 ChangeLog
--- ChangeLog	29 Mar 2002 06:22:31 -0000	1.3305
+++ ChangeLog	29 Mar 2002 14:18:47 -0000
@@ -1,5 +1,10 @@
+Fri Mar 29 09:08:23 2002  James Willcox  <jwillcox cs indiana edu>
+
+	* gtk/gtkdialog.c:  Remove the binding for the Escape key, which
+	previously closed the dialog.  (#74221)
+
 Fri Mar 29 00:19:41 2002  Owen Taylor  <otaylor redhat com>
 
 	* NEWS: Updates
 
 	* configure.in: Version 2.0.1, binary, interface age 1.
Index: gtk/gtkdialog.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkdialog.c,v
retrieving revision 1.42
diff -u -5 -r1.42 gtkdialog.c
--- gtk/gtkdialog.c	30 Jan 2002 18:58:31 -0000	1.42
+++ gtk/gtkdialog.c	29 Mar 2002 14:18:54 -0000
@@ -170,15 +170,10 @@
                                                              _("Width of border around the button area at the bottom of the dialog"),
                                                              0,
                                                              G_MAXINT,
                                                              5,
                                                              G_PARAM_READABLE));
-
-  binding_set = gtk_binding_set_by_class (class);
-  
-  gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0,
-                                "close", 0);
 }
 
 static void
 update_spacings (GtkDialog *dialog)
 {


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