diff options
author | Alan F <ajf@eth0.org.uk> | 2014-05-20 21:26:15 +0100 |
---|---|---|
committer | Alan F <ajf@eth0.org.uk> | 2014-05-20 21:26:15 +0100 |
commit | 071de62a76b37d85033430b101cc0e18f0aac07d (patch) | |
tree | 285478ab931ddfa36b4d805b5ba8b2a6fa1b713f | |
parent | 3343101d993edf10f9782e390a600ca568b840f7 (diff) |
issue 261 - refactoring of persistent tree view during RSS broke the actions+directories views. PROP_CONF_FLAGS needed G_PARAM_CONSTRUCT_ONLY, otherwise it gets initialised after it is copied into the widget description struct, not before, so the config is accessed using the wrong scope.
-rw-r--r-- | src/trg-persistent-tree-view.c | 1 | ||||
-rw-r--r-- | src/trg-preferences-dialog.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/trg-persistent-tree-view.c b/src/trg-persistent-tree-view.c index c608acb..846fb9a 100644 --- a/src/trg-persistent-tree-view.c +++ b/src/trg-persistent-tree-view.c @@ -474,6 +474,7 @@ trg_persistent_tree_view_class_init(TrgPersistentTreeViewClass * klass) INT_MAX, TRG_PREFS_PROFILE, G_PARAM_READWRITE | + G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); diff --git a/src/trg-preferences-dialog.c b/src/trg-preferences-dialog.c index 9503005..6638039 100644 --- a/src/trg-preferences-dialog.c +++ b/src/trg-preferences-dialog.c @@ -600,7 +600,7 @@ static GtkWidget *trg_prefs_openExecPage(TrgPreferencesDialog * dlg) model = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_STRING); ptv = trg_persistent_tree_view_new(priv->prefs, model, - TRG_PREFS_KEY_EXEC_COMMANDS, TRG_PREFS_PROFILE); + TRG_PREFS_KEY_EXEC_COMMANDS, TRG_PREFS_CONNECTION); trg_persistent_tree_view_set_add_select(ptv, trg_persistent_tree_view_add_column (ptv, 0, |