diff options
author | rbuj <[email protected]> | 2019-04-28 20:30:39 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-05-03 04:21:16 +0000 |
commit | c34fc890df3b7765c4f299eacfb5c7e9d2567184 (patch) | |
tree | 73fb10e92b0eac461a4751d8183ec1364cee7651 /src/procman.cpp | |
parent | 74723c1a5f4275af448bd3879cd882c8c64ad744 (diff) | |
download | mate-system-monitor-c34fc890df3b7765c4f299eacfb5c7e9d2567184.tar.bz2 mate-system-monitor-c34fc890df3b7765c4f299eacfb5c7e9d2567184.tar.xz |
procman: Use G_VARIANT_TYPE ("ai") instead of G_VARIANT_TYPE_ARRAY
G_VARIANT_TYPE ("ai") = array of integers
Test: Change the columns order in Processes tab, run:
$ dconf read /org/mate/system-monitor/proctree/columns-order
Diffstat (limited to 'src/procman.cpp')
-rw-r--r-- | src/procman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/procman.cpp b/src/procman.cpp index b6e94cb..09ddc38 100644 --- a/src/procman.cpp +++ b/src/procman.cpp @@ -495,7 +495,7 @@ procman_save_tree_state (GSettings *settings, GtkWidget *tree, const gchar *chil order = proctable_get_columns_order(GTK_TREE_VIEW(tree)); - builder = g_variant_builder_new (G_VARIANT_TYPE_ARRAY); + builder = g_variant_builder_new (G_VARIANT_TYPE ("ai")); for (order_node = order; order_node; order_node = order_node->next) g_variant_builder_add(builder, "i", GPOINTER_TO_INT(order_node->data)); |