Ticket #18 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

[Patch] Support alternative button order in dialogs

Reported by: LoneFox Owned by: jordi
Priority: trivial Version:
Keywords: Cc:

Description

Please add this to the next version

diff -ur epdfview-0.1.3-orig/src/gtk/MainView.cxx epdfview-0.1.3/src/gtk/MainView.cxx
--- epdfview-0.1.3-orig/src/gtk/MainView.cxx	2006-04-24 13:00:59.000000000 +0300
+++ epdfview-0.1.3/src/gtk/MainView.cxx	2006-04-25 20:57:38.000000000 +0300
@@ -245,7 +245,8 @@
             GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
             GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
             NULL);
-    
+    gtk_dialog_set_alternative_button_order(GTK_DIALOG(openDialog), GTK_RESPONSE_ACCEPT,
+            GTK_RESPONSE_CANCEL, -1);
     if ( NULL != lastFolder )
     {
         gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (openDialog),
@@ -303,6 +304,8 @@
             GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
             GTK_STOCK_OK, GTK_RESPONSE_ACCEPT,
             NULL);
+    gtk_dialog_set_alternative_button_order(GTK_DIALOG(passwordDialog),
+            GTK_RESPONSE_ACCEPT, GTK_RESPONSE_CANCEL, -1);
     gtk_dialog_set_default_response (GTK_DIALOG (passwordDialog), 
                                      GTK_RESPONSE_ACCEPT);
     gtk_box_pack_start (GTK_BOX (GTK_DIALOG (passwordDialog)->vbox),

Change History

Changed 2 years ago by jordi

  • status changed from new to closed
  • resolution set to fixed

I't now in trunk. Thanks.

Note: See TracTickets for help on using tickets.