diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-08-20 13:19:38 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2013-08-20 13:19:38 +0200 |
commit | 7b9f3a31edc12fdb8c30711ed2615031bf0b0135 (patch) | |
tree | 21727b8c0cc39fb3e9834acff914542576d23f33 /libwnck/util.c | |
parent | 2142cd2c7714d235975cf1f1b05459becfcdc4bd (diff) | |
download | libwnck-7b9f3a31edc12fdb8c30711ed2615031bf0b0135.tar.gz |
Utils: allow to set the default icon sizes and use these values
Diffstat (limited to 'libwnck/util.c')
-rw-r--r-- | libwnck/util.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/libwnck/util.c b/libwnck/util.c index 607b7b2..0e5b7b7 100644 --- a/libwnck/util.c +++ b/libwnck/util.c @@ -657,6 +657,52 @@ _wnck_get_client_type (void) return client_type; } +static gsize default_icon_size = WNCK_DEFAULT_ICON_SIZE; + +/** + * wnck_set_default_icon_size: + * @size: the default size for windows and application standard icons. + * + * The default main icon size is %WNCK_DEFAULT_ICON_SIZE. This function allows + * to change this value. + * + * Since: 2.4.6 + */ +void +wnck_set_default_icon_size (gsize size) +{ + default_icon_size = size; +} + +gsize +_wnck_get_default_icon_size (void) +{ + return default_icon_size; +} + +static gsize default_mini_icon_size = WNCK_DEFAULT_MINI_ICON_SIZE; + +/** + * wnck_set_default_mini_icon_size: + * @size: the default size for windows and application mini icons. + * + * The default main icon size is %WNCK_DEFAULT_MINI_ICON_SIZE. This function + * allows to change this value. + * + * Since: 2.4.6 + */ +void +wnck_set_default_mini_icon_size (gsize size) +{ + default_mini_icon_size = size; +} + +gsize +_wnck_get_default_mini_icon_size (void) +{ + return default_mini_icon_size; +} + /** * _make_gtk_label_bold: * @label: The label. |