Made psppire-window an abstract type
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 24 Feb 2009 12:02:39 +0000 (21:02 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 24 Feb 2009 12:02:39 +0000 (21:02 +0900)
src/ui/gui/psppire-window.c
src/ui/gui/psppire-window.h

index 29be4c2082fd4c44270bc64f761e89265185fc9c..45cd66c1308299e57c84e128b856fa2826afabd3 100644 (file)
@@ -60,7 +60,7 @@ psppire_window_get_type (void)
 
       psppire_window_type =
        g_type_register_static (GTK_TYPE_WINDOW, "PsppireWindow",
-                               &psppire_window_info, 0);
+                               &psppire_window_info, G_TYPE_FLAG_ABSTRACT);
     }
 
   return psppire_window_type;
@@ -370,15 +370,6 @@ psppire_window_init (PsppireWindow *window)
 }
 
 
-GtkWidget*
-psppire_window_new (void)
-{
-  return GTK_WIDGET (g_object_new (psppire_window_get_type (),
-                                  "type", GTK_WINDOW_TOPLEVEL,
-                                  NULL));
-}
-
-
 const gchar *
 psppire_window_get_filename (PsppireWindow *w)
 {
index a1861dc871bcb4c37d2135f192892303f36e560e..c9352df8597f15f679705810aa1645181bfabd87 100644 (file)
@@ -65,7 +65,6 @@ struct _PsppireWindowClass
 };
 
 GType      psppire_window_get_type        (void);
-GtkWidget* psppire_window_new             (void);
 
 const gchar * psppire_window_get_filename (PsppireWindow *);