Store sort-column-id and sort-type (Fixes #36)

This commit is contained in:
Simon Steinbeiss
2021-02-18 16:28:24 +01:00
parent 36e428bee4
commit 31feaf1d26
2 changed files with 7 additions and 0 deletions

View File

@@ -191,6 +191,11 @@ xtm_settings_bind_xfconf (XtmSettings *settings, XfconfChannel *channel)
G_OBJECT (settings), "column-cpu"); G_OBJECT (settings), "column-cpu");
xfconf_g_property_bind (channel, SETTING_COLUMN_PRIORITY, G_TYPE_BOOLEAN, xfconf_g_property_bind (channel, SETTING_COLUMN_PRIORITY, G_TYPE_BOOLEAN,
G_OBJECT (settings), "column-priority"); G_OBJECT (settings), "column-priority");
xfconf_g_property_bind (channel, SETTING_COLUMN_SORT_ID, G_TYPE_UINT,
G_OBJECT (settings), "sort-column-id");
xfconf_g_property_bind (channel, SETTING_COLUMN_SORT_TYPE, G_TYPE_UINT,
G_OBJECT (settings), "sort-type");
} }
XtmSettings * XtmSettings *

View File

@@ -50,6 +50,8 @@
#define SETTING_COLUMN_UID "/columns/column-uid" #define SETTING_COLUMN_UID "/columns/column-uid"
#define SETTING_COLUMN_CPU "/columns/column-cpu" #define SETTING_COLUMN_CPU "/columns/column-cpu"
#define SETTING_COLUMN_PRIORITY "/columns/column-priority" #define SETTING_COLUMN_PRIORITY "/columns/column-priority"
#define SETTING_COLUMN_SORT_ID "/columns/sort-id"
#define SETTING_COLUMN_SORT_TYPE "/columns/sort-type"
#define XTM_TYPE_SETTINGS (xtm_settings_get_type ()) #define XTM_TYPE_SETTINGS (xtm_settings_get_type ())
#define XTM_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XTM_TYPE_SETTINGS, XtmSettings)) #define XTM_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XTM_TYPE_SETTINGS, XtmSettings))