Created function ag_app_create_window() for file opening purposes

This commit is contained in:
Gergely Polonkai 2013-09-17 13:26:16 +02:00
parent a14506281f
commit fc5f8ef63a

View File

@ -43,15 +43,22 @@ ag_app_raise(AgApp *app)
g_action_group_activate_action(G_ACTION_GROUP(app), "raise", NULL); g_action_group_activate_action(G_ACTION_GROUP(app), "raise", NULL);
} }
static void static GtkWidget *
new_window_cb(GSimpleAction *action, GVariant *parameter, gpointer user_data) ag_app_create_window(AgApp *app)
{ {
AgApp *app = AG_APP(user_data);
GtkWidget *window; GtkWidget *window;
window = ag_window_new(app); window = ag_window_new(app);
gtk_application_add_window(GTK_APPLICATION(app), GTK_WINDOW(window)); gtk_application_add_window(GTK_APPLICATION(app), GTK_WINDOW(window));
gtk_widget_show_all(window); gtk_widget_show_all(window);
return window;
}
static void
new_window_cb(GSimpleAction *action, GVariant *parameter, gpointer user_data)
{
ag_app_create_window(AG_APP(user_data));
} }
static void static void