summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-03-02 13:50:31 +0300
committermonsta <[email protected]>2016-03-02 14:01:37 +0300
commit698d591dcdc44adf78f32341276b3d1fb2d5a6e8 (patch)
tree8b45c3c0b0f198492c71365e0823ddacd5c0ae59
parent6ad1bdcf4b81785c8296b29eaccb73becebce21f (diff)
downloadmate-system-monitor-698d591dcdc44adf78f32341276b3d1fb2d5a6e8.tar.bz2
mate-system-monitor-698d591dcdc44adf78f32341276b3d1fb2d5a6e8.tar.xz
some style corrections
-rw-r--r--src/disks.cpp9
-rw-r--r--src/procman.cpp9
-rw-r--r--src/proctable.cpp3
3 files changed, 11 insertions, 10 deletions
diff --git a/src/disks.cpp b/src/disks.cpp
index 490002c..2431727 100644
--- a/src/disks.cpp
+++ b/src/disks.cpp
@@ -251,10 +251,11 @@ cb_disk_columns_changed(GtkTreeView *treeview, gpointer user_data)
}
-static void open_dir(GtkTreeView *tree_view,
- GtkTreePath *path,
- GtkTreeViewColumn *column,
- gpointer user_data)
+static void
+open_dir(GtkTreeView *tree_view,
+ GtkTreePath *path,
+ GtkTreeViewColumn *column,
+ gpointer user_data)
{
GtkTreeIter iter;
GtkTreeModel *model;
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);
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 50d22fb..158b8f7 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -139,7 +139,6 @@ proctable_set_columns_order(GtkTreeView *treeview, GSList *order)
}
-
GSList*
proctable_get_columns_order(GtkTreeView *treeview)
{
@@ -190,7 +189,7 @@ save_column_width (gpointer data)
return FALSE;
}
-void
+static void
cb_proctable_column_resized(GtkWidget *widget, GParamSpec *pspec, gpointer data)
{
current_column = GTK_TREE_VIEW_COLUMN(widget);