GtkWidget* main_window_new (const gchar *title) { GObject *object = g_object_new (main_window_get_type (), NULL); MainWindow *self = MAIN_WINDOW (object); gtk_window_set_title(&self->window, title); return GTK_WIDGET (object); }
GtkWidget *main_window_new(GtkApplication *app) { return GTK_WIDGET(g_object_new( main_window_get_type(), "application", app, NULL )); }