Skip to content

Commit 57506ff

Browse files
fxriraveit65
authored and
raveit65
committed
Make EomWindow a GtkApplicationWindow
origin commit: https://gitlab.gnome.org/GNOME/eog/commit/df5b2b6
1 parent 5c58837 commit 57506ff

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Diff for: src/eom-window.c

+6-4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
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
}

Diff for: src/eom-window.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ typedef enum {
8383
} EomStartupFlags;
8484

8585
struct _EomWindow {
86-
GtkWindow win;
86+
GtkApplicationWindow win;
8787

8888
EomWindowPrivate *priv;
8989
};
9090

9191
struct _EomWindowClass {
92-
GtkWindowClass parent_class;
92+
GtkApplicationWindowClass parent_class;
9393

9494
void (* prepared) (EomWindow *window);
9595
};

0 commit comments

Comments
 (0)