[atomix] Use fallback mode to show appmenu (Refs #7)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atomix] Use fallback mode to show appmenu (Refs #7)
- Date: Sun, 25 Mar 2018 03:21:11 +0000 (UTC)
commit 2fcd6a801bee739fb61d36fa18e001f421771dfb
Author: Robert Roth <robert roth off gmail com>
Date: Sun Mar 25 06:20:52 2018 +0300
Use fallback mode to show appmenu (Refs #7)
data/ui/interface.ui | 1 +
src/main.c | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/data/ui/interface.ui b/data/ui/interface.ui
index ea251c0..5d27520 100644
--- a/data/ui/interface.ui
+++ b/data/ui/interface.ui
@@ -241,6 +241,7 @@
<property name="can_focus">False</property>
<property name="title">Atomix</property>
<property name="show_close_button">True</property>
+ <property name="decoration_layout">menu:close</property>
<child>
<placeholder/>
</child>
diff --git a/src/main.c b/src/main.c
index a041e2b..65c57a4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -615,7 +615,10 @@ static AtomixApp *create_gui (GApplication *app_instance)
GMenu * menu = G_MENU (gtk_builder_get_object (builder, "appmenu"));
gtk_application_set_app_menu (GTK_APPLICATION (app->app_instance), G_MENU_MODEL (menu));
-
+ // TODO find out why appmenu isn't shown without this
+ g_object_set (gtk_widget_get_settings (headerbar),
+ "gtk-shell-shows-app-menu", FALSE,
+ NULL);
g_object_unref (builder);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]