diff options
author | Thomas White <taw@bitwiz.me.uk> | 2018-03-31 15:58:49 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2018-03-31 18:06:36 +0200 |
commit | 3f1596874a2790fc513e2fed319e416285659180 (patch) | |
tree | e4e75000c727e0cb5b1368cb377dea4675edd1b1 | |
parent | b6b1bcbee9601aa1658e7f6b4d0083bbb5637072 (diff) |
Don't unref the GtkBuilder when it's still needed
-rw-r--r-- | src/colloquium.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/colloquium.c b/src/colloquium.c index 4e99212..bcd3d92 100644 --- a/src/colloquium.c +++ b/src/colloquium.c @@ -528,7 +528,6 @@ static void colloquium_startup(GApplication *papp) gtk_application_set_menubar(GTK_APPLICATION(app), G_MENU_MODEL(gtk_builder_get_object(builder, "menubar"))); - g_object_unref(builder); settings = gtk_settings_get_for_screen(gdk_screen_get_default()); g_object_get(G_OBJECT(settings), "gtk-shell-shows-app-menu", &app_menu_shown, NULL); @@ -540,6 +539,7 @@ static void colloquium_startup(GApplication *papp) GMenuModel *mmodel = G_MENU_MODEL(gtk_builder_get_object(builder, "app-menu")); gtk_application_set_app_menu(GTK_APPLICATION(app), mmodel); } + g_object_unref(builder); configdir = g_get_user_config_dir(); app->mydir = malloc(strlen(configdir)+14); |