xapp-gtk-window: Make xapp_gtk_window_new() handle the same arguments
as gtk_window_new().
Michael Webster
6 years ago
48 | 48 | * win = Gtk.Window() |
49 | 49 | * XApp.set_window_icon_name(win, "foobar") |
50 | 50 | * |
51 | * These functions mirror those of the #XappGtkWindow class, but allow the properties | |
51 | * These functions mirror those of the #XAppGtkWindow class, but allow the properties | |
52 | 52 | * to work with normal GtkWindows and descendants of GtkWindow. |
53 | 53 | */ |
54 | 54 | |
345 | 345 | g_type_class_add_private (gobject_class, sizeof (XAppGtkWindowPrivate)); |
346 | 346 | } |
347 | 347 | |
348 | XAppGtkWindow * | |
349 | xapp_gtk_window_new (void) | |
350 | { | |
351 | return g_object_new (XAPP_TYPE_GTK_WINDOW, NULL); | |
348 | /** | |
349 | * xapp_gtk_window_new: | |
350 | * @type: The #GtkWindowType to use | |
351 | * | |
352 | * Creates a new #XAppGtkWindow of type @type. See gtk_window_new() | |
353 | * for more details. | |
354 | * | |
355 | * Returns: A new #XAppGtkWindow | |
356 | */ | |
357 | GtkWidget * | |
358 | xapp_gtk_window_new (GtkWindowType type) | |
359 | { | |
360 | return g_object_new (XAPP_TYPE_GTK_WINDOW, "type", type, NULL); | |
352 | 361 | } |
353 | 362 | |
354 | 363 | /** |