diff --git a/libxapp/xapp-gtk-window.c b/libxapp/xapp-gtk-window.c index 6747a18..93ac952 100644 --- a/libxapp/xapp-gtk-window.c +++ b/libxapp/xapp-gtk-window.c @@ -49,7 +49,7 @@ * win = Gtk.Window() * XApp.set_window_icon_name(win, "foobar") * - * These functions mirror those of the #XappGtkWindow class, but allow the properties + * These functions mirror those of the #XAppGtkWindow class, but allow the properties * to work with normal GtkWindows and descendants of GtkWindow. */ @@ -346,10 +346,19 @@ g_type_class_add_private (gobject_class, sizeof (XAppGtkWindowPrivate)); } -XAppGtkWindow * -xapp_gtk_window_new (void) -{ - return g_object_new (XAPP_TYPE_GTK_WINDOW, NULL); +/** + * xapp_gtk_window_new: + * @type: The #GtkWindowType to use + * + * Creates a new #XAppGtkWindow of type @type. See gtk_window_new() + * for more details. + * + * Returns: A new #XAppGtkWindow + */ +GtkWidget * +xapp_gtk_window_new (GtkWindowType type) +{ + return g_object_new (XAPP_TYPE_GTK_WINDOW, "type", type, NULL); } /** diff --git a/libxapp/xapp-gtk-window.h b/libxapp/xapp-gtk-window.h index b98dd7d..3a69833 100644 --- a/libxapp/xapp-gtk-window.h +++ b/libxapp/xapp-gtk-window.h @@ -33,7 +33,7 @@ /* Class */ GType xapp_gtk_window_get_type (void); -XAppGtkWindow *xapp_gtk_window_new (void); +GtkWidget *xapp_gtk_window_new (GtkWindowType type); void xapp_gtk_window_set_icon_name (XAppGtkWindow *window, const gchar *icon_name);