[niepce: 15/22] Fix the "open_library" file requester. It is "select folder" not create.



commit cfb4bf879b9121f65b8228fd0e1788e7eadbd5e9
Author: Hubert Figuière <hub figuiere net>
Date:   Sat Jul 26 11:21:39 2014 +0200

    Fix the "open_library" file requester. It is "select folder" not create.

 src/niepce/ui/niepcewindow.cpp |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/niepce/ui/niepcewindow.cpp b/src/niepce/ui/niepcewindow.cpp
index 9843075..b0ff241 100644
--- a/src/niepce/ui/niepcewindow.cpp
+++ b/src/niepce/ui/niepcewindow.cpp
@@ -151,7 +151,6 @@ NiepceWindow::buildWidget()
     m_widget = &win;
 
     init_actions();
-    init_ui();
 
     m_notifcenter.reset(new niepce::NotificationCenter());
 
@@ -168,10 +167,6 @@ NiepceWindow::buildWidget()
 }
 
 
-void NiepceWindow::init_ui()
-{
-}
-
 void NiepceWindow::init_actions()
 {
     m_menu = Gio::Menu::create();
@@ -349,10 +344,10 @@ void NiepceWindow::on_lib_notification(const eng::LibNotification & ln)
 std::string NiepceWindow::prompt_open_library()
 {
     std::string libMoniker;
-    Gtk::FileChooserDialog dialog(gtkWindow(), _("Create library"),
-                                  Gtk::FILE_CHOOSER_ACTION_CREATE_FOLDER);
+    Gtk::FileChooserDialog dialog(gtkWindow(), _("Open library"),
+                                  Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER);
     dialog.add_button(_("Cancel"), Gtk::RESPONSE_CANCEL);
-    dialog.add_button(_("Create"), Gtk::RESPONSE_OK);
+    dialog.add_button(_("Open"), Gtk::RESPONSE_OK);
 
     int result = dialog.run();
     Glib::ustring libraryToCreate;


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