patches/gtk3+-11-filechooser-enterkey.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 18292 9ff9c0fa64d9
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18292
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     1
--- gtk+-2.12.1/gtk/gtkfilechooserdialog.c.old	2007-10-16 21:20:38.000000000 +0800
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     2
+++ gtk+-2.12.1/gtk/gtkfilechooserdialog.c	2007-12-27 16:20:18.388325000 +0800
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     3
@@ -465,6 +465,12 @@
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     4
     {
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     5
       response_id = va_arg (varargs, gint);
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     6
       gtk_dialog_add_button (GTK_DIALOG (result), button_text, response_id);
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     7
+     
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     8
+      if ((response_id == GTK_RESPONSE_OK) ||
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
     9
+	  (response_id == GTK_RESPONSE_ACCEPT) ||
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    10
+	  (response_id == GTK_RESPONSE_YES) ||
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    11
+	  (response_id == GTK_RESPONSE_APPLY))
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    12
+              gtk_dialog_set_default_response (GTK_DIALOG (result), response_id);	
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    13
       button_text = va_arg (varargs, const gchar *);
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    14
     }
9ff9c0fa64d9 2010-07-29 Christian Kelly <[email protected]>
chrisk
parents:
diff changeset
    15