[gnome-control-center/gnome-3-8] region: Remove useless parameter



commit 0526ab48852038d06ba04ecdac14b3ad67298819
Author: Rui Matos <tiagomatos gmail com>
Date:   Sun Mar 10 02:46:59 2013 +0100

    region: Remove useless parameter
    
    locald settings are system settings by definition so we can just use
    priv->system_language directly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695535

 panels/region/cc-region-panel.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index e8f937a..6dd95b7 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -352,8 +352,7 @@ maybe_notify (CcRegionPanel *self,
                            mnd);
 }
 
-static void set_localed_locale (CcRegionPanel *self,
-                                const gchar   *language);
+static void set_localed_locale (CcRegionPanel *self);
 
 static void
 update_language (CcRegionPanel *self,
@@ -364,7 +363,7 @@ update_language (CcRegionPanel *self,
         if (priv->login) {
                 if (g_strcmp0 (language, priv->system_language) == 0)
                         return;
-                set_localed_locale (self, language);
+                set_localed_locale (self);
         } else {
                 if (g_strcmp0 (language, priv->language) == 0)
                         return;
@@ -1497,15 +1496,14 @@ add_input_sources_from_localed (CcRegionPanel *self)
 }
 
 static void
-set_localed_locale (CcRegionPanel *self,
-                    const gchar   *language)
+set_localed_locale (CcRegionPanel *self)
 {
        CcRegionPanelPrivate *priv = self->priv;
         GVariantBuilder *b;
         gchar *s;
 
         b = g_variant_builder_new (G_VARIANT_TYPE ("as"));
-        s = g_strconcat ("LANG=", language, NULL);
+        s = g_strconcat ("LANG=", priv->system_language, NULL);
         g_variant_builder_add (b, "s", s);
         g_free (s);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]