diff options
author | Robert Tari <robert@tari.in> | 2024-04-05 01:32:44 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2024-04-05 01:32:44 +0200 |
commit | 60760e48ee8589c6d8c98d054f9e45caf1196d34 (patch) | |
tree | fcacd08ba8631d1c8ed6aa338e7f710cb914d795 /src | |
parent | 7b20013183757362f2995d20c9bdcf43c7dad76d (diff) | |
download | ayatana-indicator-display-60760e48ee8589c6d8c98d054f9e45caf1196d34.tar.gz ayatana-indicator-display-60760e48ee8589c6d8c98d054f9e45caf1196d34.tar.bz2 ayatana-indicator-display-60760e48ee8589c6d8c98d054f9e45caf1196d34.zip |
src/service.cpp: Fix slider step and precision
Diffstat (limited to 'src')
-rw-r--r-- | src/service.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/service.cpp b/src/service.cpp index a8d6839..26faec9 100644 --- a/src/service.cpp +++ b/src/service.cpp @@ -1,6 +1,6 @@ /* * Copyright 2014 Canonical Ltd. - * Copyright 2023 Robert Tari + * Copyright 2023-2024 Robert Tari * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1014,7 +1014,8 @@ private: g_menu_item_set_attribute_value (menu_item, "max-icon", pIconMaxSerialised); g_menu_item_set_attribute (menu_item, "min-value", "d", 0.5); g_menu_item_set_attribute (menu_item, "max-value", "d", 1.0); - g_menu_item_set_attribute (menu_item, "step", "d", 0.005); + g_menu_item_set_attribute (menu_item, "step", "d", 0.01); + g_menu_item_set_attribute (menu_item, "digits", "y", 2); g_menu_append_item (section, menu_item); pIconMin = g_themed_icon_new_with_default_fallbacks ("ayatana-indicator-display-colortemp-on"); @@ -1029,6 +1030,7 @@ private: g_menu_item_set_attribute (menu_item, "min-value", "d", 3000.0); g_menu_item_set_attribute (menu_item, "max-value", "d", 6500.0); g_menu_item_set_attribute (menu_item, "step", "d", 100.0); + g_menu_item_set_attribute (menu_item, "digits", "y", 0); g_menu_append_item (section, menu_item); GMenu *pMenuProfiles = g_menu_new (); |