summaryrefslogtreecommitdiff
path: root/src/eom-window.c
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2012-06-07 13:22:20 +0200
committerraveit65 <[email protected]>2018-07-17 21:53:38 +0200
commit57506ffd5c8f99a2461c538c61ebe38653760dd7 (patch)
tree82e2a86489bbc9f30705c71cb325486259afd38c /src/eom-window.c
parent5c5883772852ad59676bf60ddda06af567193c63 (diff)
downloadeom-57506ffd5c8f99a2461c538c61ebe38653760dd7.tar.bz2
eom-57506ffd5c8f99a2461c538c61ebe38653760dd7.tar.xz
Make EomWindow a GtkApplicationWindow
origin commit: https://gitlab.gnome.org/GNOME/eog/commit/df5b2b6
Diffstat (limited to 'src/eom-window.c')
-rw-r--r--src/eom-window.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index d17c9d3..1ac7365 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -87,7 +87,7 @@
#define EOM_WINDOW_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_WINDOW, EomWindowPrivate))
-G_DEFINE_TYPE (EomWindow, eom_window, GTK_TYPE_WINDOW);
+G_DEFINE_TYPE (EomWindow, eom_window, GTK_TYPE_APPLICATION_WINDOW);
#define EOM_WINDOW_MIN_WIDTH 440
#define EOM_WINDOW_MIN_HEIGHT 350
@@ -5237,9 +5237,11 @@ eom_window_new (EomStartupFlags flags)
eom_debug (DEBUG_WINDOW);
window = EOM_WINDOW (g_object_new (EOM_TYPE_WINDOW,
- "type", GTK_WINDOW_TOPLEVEL,
- "startup-flags", flags,
- NULL));
+ "type", GTK_WINDOW_TOPLEVEL,
+ "application", EOM_APP,
+ "show-menubar", FALSE,
+ "startup-flags", flags,
+ NULL));
return GTK_WIDGET (window);
}