aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-04-08 13:35:33 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-04-08 13:35:33 +0200
commit3ec03467a05023316ff4981c6c26510f1be868ab (patch)
treefcacd08ba8631d1c8ed6aa338e7f710cb914d795
parent7b20013183757362f2995d20c9bdcf43c7dad76d (diff)
parent60760e48ee8589c6d8c98d054f9e45caf1196d34 (diff)
downloadayatana-indicator-display-3ec03467a05023316ff4981c6c26510f1be868ab.tar.gz
ayatana-indicator-display-3ec03467a05023316ff4981c6c26510f1be868ab.tar.bz2
ayatana-indicator-display-3ec03467a05023316ff4981c6c26510f1be868ab.zip
Merge branch 'tari01-pr/slider-step'
Attributes GH PR #94: https://github.com/AyatanaIndicators/ayatana-indicator-display/pull/94
-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 ();