Codebase list xapp / 4d21eca
xapp-gtk-window: Make xapp_gtk_window_new() handle the same arguments as gtk_window_new(). Michael Webster 6 years ago
2 changed file(s) with 15 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
4848 * win = Gtk.Window()
4949 * XApp.set_window_icon_name(win, "foobar")
5050 *
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
5252 * to work with normal GtkWindows and descendants of GtkWindow.
5353 */
5454
345345 g_type_class_add_private (gobject_class, sizeof (XAppGtkWindowPrivate));
346346 }
347347
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);
352361 }
353362
354363 /**
3232
3333 /* Class */
3434 GType xapp_gtk_window_get_type (void);
35 XAppGtkWindow *xapp_gtk_window_new (void);
35 GtkWidget *xapp_gtk_window_new (GtkWindowType type);
3636
3737 void xapp_gtk_window_set_icon_name (XAppGtkWindow *window,
3838 const gchar *icon_name);