Skip to content
Snippets Groups Projects
Commit 7fc33f9d authored by Bruce Cowan's avatar Bruce Cowan
Browse files

A few wee style fixes

parent bed55750
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ struct _RugbyApplication
GtkApplication parent;
};
G_DEFINE_TYPE (RugbyApplication, rugby_application, GTK_TYPE_APPLICATION);
G_DEFINE_TYPE (RugbyApplication, rugby_application, GTK_TYPE_APPLICATION)
static void
rugby_application_activate (GApplication *app)
......@@ -68,19 +68,20 @@ quit_activated (GSimpleAction *simple,
g_application_quit (G_APPLICATION (user_data));
}
static const GActionEntry app_entries[] =
{
{ "about", about_activated, NULL, NULL, NULL },
{ "quit", quit_activated, NULL, NULL, NULL }
};
static void
rugby_application_startup (GApplication *app)
{
const GActionEntry app_entries[] =
{
{ "about", about_activated },
{ "quit", quit_activated }
};
G_APPLICATION_CLASS (rugby_application_parent_class)->startup (app);
g_action_map_add_action_entries (G_ACTION_MAP (app),
app_entries, G_N_ELEMENTS (app_entries),
app_entries,
G_N_ELEMENTS (app_entries),
app);
g_autoptr (GtkBuilder) builder = gtk_builder_new_from_resource ("/uk/me/bcowan/rugby/menu.ui");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment