simplify weighting
[pspp] / src / ui / gui / psppire-window-base.c
index a9f73535dfd460b534f05bcf7cacb0063526f4cb..1db54c7d124e800c46b558f6d35e158eb8adaa69 100644 (file)
@@ -16,7 +16,7 @@
 
 /*
  This is an abstract base class upon which all (well almost all) windows in
 
 /*
  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"
  splash screen and popups.
 
  It currently provides the feature where the window's geometry "persists"
@@ -33,9 +33,8 @@
 #include <gtk/gtk.h>
 
 static void psppire_window_base_class_init    (PsppireWindowBaseClass *class);
 #include <gtk/gtk.h>
 
 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.
 
 
 /* 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)
   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;
 }
 
   return FALSE;
 }
 
-static void 
+static void
 psppire_window_base_class_init    (PsppireWindowBaseClass *class)
 {
   GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
 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;
 }
 
   widget_class->realize = realize;
 }
 
-static void 
+static void
 psppire_window_base_init          (PsppireWindowBase      *window)
 {
 }
 psppire_window_base_init          (PsppireWindowBase      *window)
 {
 }