File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 8787#define EOM_WINDOW_GET_PRIVATE (object ) \
8888 (G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_WINDOW, EomWindowPrivate))
8989
90- G_DEFINE_TYPE (EomWindow , eom_window , GTK_TYPE_WINDOW );
90+ G_DEFINE_TYPE (EomWindow , eom_window , GTK_TYPE_APPLICATION_WINDOW );
9191
9292#define EOM_WINDOW_MIN_WIDTH 440
9393#define EOM_WINDOW_MIN_HEIGHT 350
@@ -5237,9 +5237,11 @@ eom_window_new (EomStartupFlags flags)
52375237 eom_debug (DEBUG_WINDOW );
52385238
52395239 window = EOM_WINDOW (g_object_new (EOM_TYPE_WINDOW ,
5240- "type" , GTK_WINDOW_TOPLEVEL ,
5241- "startup-flags" , flags ,
5242- NULL ));
5240+ "type" , GTK_WINDOW_TOPLEVEL ,
5241+ "application" , EOM_APP ,
5242+ "show-menubar" , FALSE,
5243+ "startup-flags" , flags ,
5244+ NULL ));
52435245
52445246 return GTK_WIDGET (window );
52455247}
Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ typedef enum {
8383} EomStartupFlags ;
8484
8585struct _EomWindow {
86- GtkWindow win ;
86+ GtkApplicationWindow win ;
8787
8888 EomWindowPrivate * priv ;
8989};
9090
9191struct _EomWindowClass {
92- GtkWindowClass parent_class ;
92+ GtkApplicationWindowClass parent_class ;
9393
9494 void (* prepared ) (EomWindow * window );
9595};
You can’t perform that action at this time.
0 commit comments