[niepce] Add Import button to the header bar



commit 7342c38c33ebf67bdfcbb23458f39d916a9d6a07
Author: Hubert Figuière <hub figuiere net>
Date:   Sun Oct 7 11:59:09 2018 -0400

    Add Import button to the header bar

 src/niepce/ui/niepcewindow.cpp | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/niepce/ui/niepcewindow.cpp b/src/niepce/ui/niepcewindow.cpp
index ee876ad..9654898 100644
--- a/src/niepce/ui/niepcewindow.cpp
+++ b/src/niepce/ui/niepcewindow.cpp
@@ -88,6 +88,11 @@ NiepceWindow::NiepceWindow()
     button_box->pack_start(*redo_button, false, false, 0);
     header->pack_start(*button_box);
 
+    Gtk::Button *import_button = Gtk::manage(new Gtk::Button);
+    import_button->set_label(_("Import..."));
+    gtk_actionable_set_action_name(GTK_ACTIONABLE(import_button->gobj()), "workspace.Import");
+    header->pack_start(*import_button);
+
     setHeaderBar(header);
 }
 


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