diff options
author | monsta <[email protected]> | 2016-03-02 13:50:31 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-03-02 14:01:37 +0300 |
commit | 698d591dcdc44adf78f32341276b3d1fb2d5a6e8 (patch) | |
tree | 8b45c3c0b0f198492c71365e0823ddacd5c0ae59 /src/procman.cpp | |
parent | 6ad1bdcf4b81785c8296b29eaccb73becebce21f (diff) | |
download | mate-system-monitor-698d591dcdc44adf78f32341276b3d1fb2d5a6e8.tar.bz2 mate-system-monitor-698d591dcdc44adf78f32341276b3d1fb2d5a6e8.tar.xz |
some style corrections
Diffstat (limited to 'src/procman.cpp')
-rw-r--r-- | src/procman.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/procman.cpp b/src/procman.cpp index 01ba3cc..b9343eb 100644 --- a/src/procman.cpp +++ b/src/procman.cpp @@ -401,7 +401,7 @@ procman_get_tree_state (GSettings *settings, GtkWidget *tree, const gchar *child if(!g_strcmp0(child_schema, "proctree")) { - for(it = columns; it; it = it->next) + for (it = columns; it; it = it->next) { GtkTreeViewColumn *column; gint width; @@ -482,7 +482,8 @@ 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") || !g_strcmp0(child_schema, "disktreenew")) + if (g_strcmp0(child_schema, "proctree") == 0 || + g_strcmp0(child_schema, "disktreenew") == 0) { GSList *order; GSList *order_node; @@ -493,8 +494,8 @@ procman_save_tree_state (GSettings *settings, GtkWidget *tree, const gchar *chil builder = g_variant_builder_new (G_VARIANT_TYPE_ARRAY); - for(order_node = order; order_node; order_node = order_node->next) - g_variant_builder_add(builder, "i", GPOINTER_TO_INT(order_node->data)); + for (order_node = order; order_node; order_node = order_node->next) + g_variant_builder_add(builder, "i", GPOINTER_TO_INT(order_node->data)); order_variant = g_variant_new("ai", builder); g_settings_set_value(pt_settings, "columns-order", order_variant); |