diff options
Diffstat (limited to 'src/procman.cpp')
-rw-r--r-- | src/procman.cpp | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/src/procman.cpp b/src/procman.cpp index c19edb7..4e8d2ce 100644 --- a/src/procman.cpp +++ b/src/procman.cpp @@ -470,7 +470,7 @@ void procman_save_tree_state (GSettings *settings, GtkWidget *tree, const gchar *child_schema) { GtkTreeModel *model; - GList *it, *columns; + GList *columns; gint sort_col; GtkSortType order; @@ -488,31 +488,6 @@ procman_save_tree_state (GSettings *settings, GtkWidget *tree, const gchar *chil columns = gtk_tree_view_get_columns (GTK_TREE_VIEW (tree)); - if(!g_strcmp0(child_schema, "proctree")) - { - for(it = columns; it; it = it->next) - { - GtkTreeViewColumn *column; - gboolean visible; - gint width; - gchar *key; - int id; - - column = static_cast<GtkTreeViewColumn*>(it->data); - id = gtk_tree_view_column_get_sort_column_id (column); - visible = gtk_tree_view_column_get_visible (column); - width = gtk_tree_view_column_get_width (column); - - key = g_strdup_printf ("col-%d-width", id); - g_settings_set_int (pt_settings, key, width); - g_free (key); - - key = g_strdup_printf ("col-%d-visible", id); - g_settings_set_boolean (pt_settings, key, visible); - g_free (key); - } - } - if(!g_strcmp0(child_schema, "proctree") || !g_strcmp0(child_schema, "disktreenew")) { GSList *order; @@ -557,6 +532,8 @@ procman_save_config (ProcData *data) g_settings_set_int (settings, "y-position", data->config.ypos); g_settings_set_int (settings, "current-tab", data->config.current_tab); + + g_settings_sync (); } static guint32 |