From: John Darrington Date: Tue, 24 Feb 2009 12:02:39 +0000 (+0900) Subject: Made psppire-window an abstract type X-Git-Tag: v0.7.3~278 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57f8d4d2612512761fbdd49f1dbd0dc313a8d257;p=pspp-builds.git Made psppire-window an abstract type --- diff --git a/src/ui/gui/psppire-window.c b/src/ui/gui/psppire-window.c index 29be4c20..45cd66c1 100644 --- a/src/ui/gui/psppire-window.c +++ b/src/ui/gui/psppire-window.c @@ -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) { diff --git a/src/ui/gui/psppire-window.h b/src/ui/gui/psppire-window.h index a1861dc8..c9352df8 100644 --- a/src/ui/gui/psppire-window.h +++ b/src/ui/gui/psppire-window.h @@ -65,7 +65,6 @@ struct _PsppireWindowClass }; GType psppire_window_get_type (void); -GtkWidget* psppire_window_new (void); const gchar * psppire_window_get_filename (PsppireWindow *);