diff options
author | rbuj <[email protected]> | 2019-04-28 20:30:39 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2020-01-09 16:57:05 +0300 |
commit | bfa4ef864f71a5958569dbb14605c820a93b0306 (patch) | |
tree | 915bfeced1e105ad45657c83a0f599e12e07c8aa /src | |
parent | 00940dea8dd26769e964b2ed790a432aba6d93be (diff) | |
download | mate-system-monitor-bfa4ef864f71a5958569dbb14605c820a93b0306.tar.bz2 mate-system-monitor-bfa4ef864f71a5958569dbb14605c820a93b0306.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')
-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)); |