[gthumb] show the tools menu button in viewer mode as well
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] show the tools menu button in viewer mode as well
- Date: Thu, 29 Jun 2017 05:15:13 +0000 (UTC)
commit 30749dbc4c82966ae66e9a757bc535a95011ed7f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Jun 29 07:11:15 2017 +0200
show the tools menu button in viewer mode as well
extensions/list_tools/callbacks.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/extensions/list_tools/callbacks.c b/extensions/list_tools/callbacks.c
index a1269c7..87fc26b 100644
--- a/extensions/list_tools/callbacks.c
+++ b/extensions/list_tools/callbacks.c
@@ -176,6 +176,15 @@ list_tools__gth_browser_construct_cb (GthBrowser *browser)
gtk_widget_show (button);
gtk_box_pack_start (GTK_BOX (gth_browser_get_headerbar_section (browser,
GTH_BROWSER_HEADER_SECTION_BROWSER_TOOLS)), button, FALSE, FALSE, 0);
+ /* viewer edit */
+
+ button = _gtk_menu_button_new_for_header_bar ("tools-symbolic");
+ g_signal_connect (button, "toggled", G_CALLBACK (tools_menu_button_toggled_cb), data);
+ gtk_widget_set_tooltip_text (button, _("Tools"));
+ gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (button), menu);
+ gtk_widget_show (button);
+ gtk_box_pack_end (GTK_BOX (gth_browser_get_headerbar_section (browser,
GTH_BROWSER_HEADER_SECTION_VIEWER_EDIT)), button, FALSE, FALSE, 0);
+
g_object_unref (builder);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]