diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-03-26 11:40:24 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-03-26 11:40:24 +0100 |
commit | fa0e19ed7dbf2a649fa6d1d1f1b23a3d9699c6b7 (patch) | |
tree | d65d3cc97280af08aa0c1ee4a7067b1afd0ec9fe | |
parent | 71f38fc0180f897be1a54a7ee05d93261da67517 (diff) | |
download | arctica-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.vala | 1 | ||||
-rw-r--r-- | src/menubar.vala | 1 |
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) |