File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 87
87
#define EOM_WINDOW_GET_PRIVATE (object ) \
88
88
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_WINDOW, EomWindowPrivate))
89
89
90
- G_DEFINE_TYPE (EomWindow , eom_window , GTK_TYPE_WINDOW );
90
+ G_DEFINE_TYPE (EomWindow , eom_window , GTK_TYPE_APPLICATION_WINDOW );
91
91
92
92
#define EOM_WINDOW_MIN_WIDTH 440
93
93
#define EOM_WINDOW_MIN_HEIGHT 350
@@ -5237,9 +5237,11 @@ eom_window_new (EomStartupFlags flags)
5237
5237
eom_debug (DEBUG_WINDOW );
5238
5238
5239
5239
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 ));
5243
5245
5244
5246
return GTK_WIDGET (window );
5245
5247
}
Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ typedef enum {
83
83
} EomStartupFlags ;
84
84
85
85
struct _EomWindow {
86
- GtkWindow win ;
86
+ GtkApplicationWindow win ;
87
87
88
88
EomWindowPrivate * priv ;
89
89
};
90
90
91
91
struct _EomWindowClass {
92
- GtkWindowClass parent_class ;
92
+ GtkApplicationWindowClass parent_class ;
93
93
94
94
void (* prepared ) (EomWindow * window );
95
95
};
You can’t perform that action at this time.
0 commit comments