[PATCH] Better default directory in core loading dialog



commit 17965075e7890ab4e50bfeccdc4ae55e5b4ac7eb
Author: Dodji Seketeli <dodji seketeli org>
Date:   Sun Feb 19 18:47:24 2012 +0100

    Better default directory in core loading dialog
    
    	* src/persp/dbgperspective/nmv-load-core-dialog.cc
    	(Loadcoredialog::Priv::Priv): Set the current folder of the file
    	chooser dialogs to the current directory.

diff --git a/src/persp/dbgperspective/nmv-load-core-dialog.cc b/src/persp/dbgperspective/nmv-load-core-dialog.cc
index 95d2078..87c3dcc 100644
--- a/src/persp/dbgperspective/nmv-load-core-dialog.cc
+++ b/src/persp/dbgperspective/nmv-load-core-dialog.cc
@@ -62,6 +62,7 @@ public:
         fcbutton_executable->signal_selection_changed ().connect
             (sigc::mem_fun
                 (*this, &Priv::on_file_selection_changed_signal));
+        fcbutton_executable->set_current_folder (Glib::get_current_dir ());
 
         fcbutton_core_file =
             ui_utils::get_widget_from_gtkbuilder<Gtk::FileChooserButton>
@@ -69,6 +70,8 @@ public:
         fcbutton_core_file->signal_selection_changed ().connect
             (sigc::mem_fun
                 (*this, &Priv::on_file_selection_changed_signal));
+        fcbutton_core_file->set_current_folder (Glib::get_current_dir ());
+
     }
 
     void on_file_selection_changed_signal ()

-- 
		Dodji


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