Skip to content
Permalink
Browse files

Make EomWindow a GtkApplicationWindow

  • Loading branch information...
Felix Riemann authored and raveit65 committed Jun 7, 2012
1 parent 5c58837 commit 57506ffd5c8f99a2461c538c61ebe38653760dd7
Showing with 8 additions and 6 deletions.
  1. +6 −4 src/eom-window.c
  2. +2 −2 src/eom-window.h
@@ -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);
}
@@ -83,13 +83,13 @@ typedef enum {
} EomStartupFlags;

struct _EomWindow {
GtkWindow win;
GtkApplicationWindow win;

EomWindowPrivate *priv;
};

struct _EomWindowClass {
GtkWindowClass parent_class;
GtkApplicationWindowClass parent_class;

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

0 comments on commit 57506ff

Please sign in to comment.
You can’t perform that action at this time.