[shotwell] Hack to switch menubar in the application window
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Hack to switch menubar in the application window
- Date: Fri, 16 Dec 2016 21:28:03 +0000 (UTC)
commit 5fea37e591b98968121dbc05679c0a5e8755fb74
Author: Jens Georg <mail jensge org>
Date: Fri Dec 16 22:16:01 2016 +0100
Hack to switch menubar in the application window
Apparently the Gtk.ApplicationWindow only reloads the menu bar from the
Application if the gtk-shell-shows-menubar property changes
Signed-off-by: Jens Georg <mail jensge org>
src/library/LibraryWindow.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/library/LibraryWindow.vala b/src/library/LibraryWindow.vala
index 628bc36..8b8091a 100644
--- a/src/library/LibraryWindow.vala
+++ b/src/library/LibraryWindow.vala
@@ -1272,6 +1272,9 @@ public class LibraryWindow : AppWindow {
Application.set_menubar (page.get_menubar ());
set_show_menubar (true);
+ var old = get_settings().gtk_shell_shows_menubar;
+ get_settings().gtk_shell_shows_menubar = !old;
+ get_settings().gtk_shell_shows_menubar = old;
Gtk.Toolbar toolbar = page.get_toolbar();
if (toolbar != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]