X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-window-base.c;h=1db54c7d124e800c46b558f6d35e158eb8adaa69;hb=c4bc3574d974d3aaf4d291097c995a31515a308a;hp=a9f73535dfd460b534f05bcf7cacb0063526f4cb;hpb=8b32f9eaad4b22698047768b5a18b9e8466662de;p=pspp diff --git a/src/ui/gui/psppire-window-base.c b/src/ui/gui/psppire-window-base.c index a9f73535df..1db54c7d12 100644 --- a/src/ui/gui/psppire-window-base.c +++ b/src/ui/gui/psppire-window-base.c @@ -16,7 +16,7 @@ /* This is an abstract base class upon which all (well almost all) windows in - psppire are based. The exceptions are transient windows such as the + psppire are based. The exceptions are transient windows such as the splash screen and popups. It currently provides the feature where the window's geometry "persists" @@ -33,9 +33,8 @@ #include static void psppire_window_base_class_init (PsppireWindowBaseClass *class); -static void psppire_window_base_init (PsppireWindowBase *window); -G_DEFINE_ABSTRACT_TYPE (PsppireWindowBase, psppire_window_base, GTK_TYPE_WINDOW); +G_DEFINE_ABSTRACT_TYPE (PsppireWindowBase, psppire_window_base, GTK_TYPE_APPLICATION_WINDOW); /* Obtain a string identifying this window. @@ -65,7 +64,7 @@ realize (GtkWidget *wb) psppire_conf_set_window_geometry (conf, get_window_id (wb), GTK_WINDOW (wb)); if (GTK_WIDGET_CLASS (psppire_window_base_parent_class)->realize) - return GTK_WIDGET_CLASS (psppire_window_base_parent_class)->realize (wb) ; + GTK_WIDGET_CLASS (psppire_window_base_parent_class)->realize (wb) ; } @@ -88,7 +87,7 @@ configure_event (GtkWidget *wb, GdkEventConfigure *event) return FALSE; } -static void +static void psppire_window_base_class_init (PsppireWindowBaseClass *class) { GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class); @@ -96,7 +95,7 @@ psppire_window_base_class_init (PsppireWindowBaseClass *class) widget_class->realize = realize; } -static void +static void psppire_window_base_init (PsppireWindowBase *window) { }