From: Andy Spencer Date: Wed, 3 Feb 2010 02:11:33 +0000 (+0000) Subject: gis-demo: avoid double-loading plugins X-Git-Tag: v0.4~100 X-Git-Url: http://pileus.org/git/?p=grits;a=commitdiff_plain;h=c2c3c301121c33a6adf5f9e7978d02387fe2a0fa gis-demo: avoid double-loading plugins --- diff --git a/src/gis-demo.c b/src/gis-demo.c index d9d86aa..d42da52 100644 --- a/src/gis-demo.c +++ b/src/gis-demo.c @@ -144,10 +144,8 @@ static void setup_plugins(GtkUIManager *manager, GtkNotebook *notebook) gtk_action_group_add_action(actions, GTK_ACTION(action)); gtk_ui_manager_add_ui(manager, merge_id, "/Menu/Plugins", name, name, GTK_UI_MANAGER_AUTO, TRUE); - if (gis_prefs_get_boolean_v(prefs, "plugins", name, NULL)) { + if (gis_prefs_get_boolean_v(prefs, "plugins", name, NULL)) gtk_toggle_action_set_active(action, TRUE); - gtk_toggle_action_toggled(action); - } } }