aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service.cpp6
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 ();