diff options
author | osch <oliver at luced de> | 2019-04-12 21:22:59 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-04-23 18:35:39 +0000 |
commit | 5e2f54dbf2417c3b5f8b1614010565a0a500382a (patch) | |
tree | 691d98cc1bfcb0e0bf4d24ee4713d53eb53eca9c /src/core/prefs.c | |
parent | ae98b909e347ae7dadb0a57a22dbca3cf2231f33 (diff) | |
download | marco-5e2f54dbf2417c3b5f8b1614010565a0a500382a.tar.bz2 marco-5e2f54dbf2417c3b5f8b1614010565a0a500382a.tar.xz |
make icon size configurable
Diffstat (limited to 'src/core/prefs.c')
-rw-r--r-- | src/core/prefs.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/prefs.c b/src/core/prefs.c index 81ce07b9..7e4db4e9 100644 --- a/src/core/prefs.c +++ b/src/core/prefs.c @@ -52,6 +52,7 @@ #define KEY_GENERAL_COMPOSITOR "compositing-manager" #define KEY_GENERAL_COMPOSITOR_FAST_ALT_TAB "compositing-fast-alt-tab" #define KEY_GENERAL_CENTER_NEW_WINDOWS "center-new-windows" +#define KEY_GENERAL_ICON_SIZE "icon-size" #define KEY_COMMAND_SCHEMA "org.mate.Marco.keybinding-commands" #define KEY_COMMAND_PREFIX "command-" @@ -114,6 +115,7 @@ static gboolean mate_accessibility = FALSE; static gboolean mate_animations = TRUE; static char *cursor_theme = NULL; static int cursor_size = 24; +static int icon_size = META_DEFAULT_ICON_SIZE; static gboolean use_force_compositor_manager = FALSE; static gboolean force_compositor_manager = FALSE; static gboolean compositing_manager = FALSE; @@ -512,6 +514,12 @@ static MetaIntPreference preferences_int[] = &cursor_size, 1, 128, 24, }, + { "icon-size", + KEY_GENERAL_SCHEMA, + META_PREF_ICON_SIZE, + &icon_size, + 6, G_MAXINT, META_DEFAULT_ICON_SIZE, + }, { NULL, NULL, 0, NULL, 0, 0, 0, }, }; @@ -1111,6 +1119,12 @@ meta_prefs_get_cursor_size (void) return cursor_size * scale; } +int +meta_prefs_get_icon_size (void) +{ + return icon_size; +} + gboolean meta_prefs_is_in_skip_list (char *class) { @@ -1623,6 +1637,9 @@ meta_preference_to_string (MetaPreference pref) case META_PREF_CURSOR_SIZE: return "CURSOR_SIZE"; + case META_PREF_ICON_SIZE: + return "ICON_SIZE"; + case META_PREF_COMPOSITING_MANAGER: return "COMPOSITING_MANAGER"; |