r568 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri May 30 23:06:06 EDT 2008


Author: icculus
Date: 2008-05-30 23:06:06 -0400 (Fri, 30 May 2008)
New Revision: 568

Modified:
   trunk/gui_gtkplus2.c
Log:
Fixed GTK+ destination file dialog syncing to combo box (thanks, Gerry JJ!).

"Destination browse button: Set initial path to the path currently
selected in the combo box.  (GTK will pop up a dialog to complain if the
currently selected path doesn't exist, but imo that's ok; it alerts the
user that the path isn't what it might be expected to be and then sets
the directory to the first valid parent dir in stead, which is excatly
what the FIXME there suggests to do)."



Modified: trunk/gui_gtkplus2.c
===================================================================
--- trunk/gui_gtkplus2.c	2008-05-31 02:53:48 UTC (rev 567)
+++ trunk/gui_gtkplus2.c	2008-05-31 03:06:06 UTC (rev 568)
@@ -171,8 +171,8 @@
         GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
         NULL);
 
-    // !!! FIXME: should set the initial path to the existent portion
-    // !!! FIXME:  of the currently suggested path.
+    gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialog),
+            gtk_combo_box_get_active_text(GTK_COMBO_BOX(destination)));
 
     if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
         gchar *filename;




More information about the mojosetup-commits mailing list