aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-03-26 11:40:24 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-03-26 11:40:24 +0100
commitfa0e19ed7dbf2a649fa6d1d1f1b23a3d9699c6b7 (patch)
treed65d3cc97280af08aa0c1ee4a7067b1afd0ec9fe
parent71f38fc0180f897be1a54a7ee05d93261da67517 (diff)
downloadarctica-greeter-fa0e19ed7dbf2a649fa6d1d1f1b23a3d9699c6b7.tar.gz
arctica-greeter-fa0e19ed7dbf2a649fa6d1d1f1b23a3d9699c6b7.tar.bz2
arctica-greeter-fa0e19ed7dbf2a649fa6d1d1f1b23a3d9699c6b7.zip
src/{arctica-greeter,menubar}.vala: Set locale to LC_NUMERIC before using printf with floats.
-rw-r--r--src/arctica-greeter.vala1
-rw-r--r--src/menubar.vala1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index ea1fce4..93c88e2 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -1220,6 +1220,7 @@ public class ArcticaGreeter : Object
/* Initialize i18n */
Intl.setlocale (LocaleCategory.ALL, "");
+ Intl.setlocale(LocaleCategory.NUMERIC, "C.UTF-8");
Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
Intl.bind_textdomain_codeset (Config.GETTEXT_PACKAGE, "UTF-8");
Intl.textdomain (Config.GETTEXT_PACKAGE);
diff --git a/src/menubar.vala b/src/menubar.vala
index 63e3557..90c1b00 100644
--- a/src/menubar.vala
+++ b/src/menubar.vala
@@ -198,6 +198,7 @@ public class MenuBar : Gtk.MenuBar
try
{
+ Intl.setlocale(LocaleCategory.NUMERIC, "C.UTF-8");
shadow_style.load_from_data ("* { box-shadow: 0px 0px 5px 5px rgba(0.2,0.2,0.2,%f); }".printf(AGSettings.get_double (AGSettings.KEY_MENUBAR_ALPHA)), -1);
}
catch (Error pError)