[gnome-initial-setup] language: Fix the value of is_extra
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] language: Fix the value of is_extra
- Date: Fri, 15 Mar 2013 22:53:25 +0000 (UTC)
commit ffe8bdd7735e27247d82389b2174af9b758686e3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Mar 15 18:52:25 2013 -0400
language: Fix the value of is_extra
The logic here was just wrong before.
.../pages/language/cc-language-chooser.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/cc-language-chooser.c
b/gnome-initial-setup/pages/language/cc-language-chooser.c
index 16292f0..684fa47 100644
--- a/gnome-initial-setup/pages/language/cc-language-chooser.c
+++ b/gnome-initial-setup/pages/language/cc-language-chooser.c
@@ -191,8 +191,8 @@ add_languages (CcLanguageChooser *chooser,
CcLanguageChooserPrivate *priv = chooser->priv;
while (*locale_ids) {
+ gboolean is_initial;
const gchar *locale_id;
- gboolean is_extra;
GtkWidget *widget;
locale_id = *locale_ids;
@@ -202,9 +202,8 @@ add_languages (CcLanguageChooser *chooser,
if (!cc_common_language_has_font (locale_id))
continue;
- is_extra = (g_hash_table_lookup (initial, locale_id) != NULL);
-
- widget = language_widget_new (locale_id, is_extra);
+ is_initial = (g_hash_table_lookup (initial, locale_id) != NULL);
+ widget = language_widget_new (locale_id, !is_initial);
gtk_container_add (GTK_CONTAINER (priv->language_list),
widget);
@@ -264,7 +263,7 @@ language_visible (GtkWidget *child,
widget = get_language_widget (child);
- if (!priv->showing_extra && !widget->is_extra)
+ if (!priv->showing_extra && widget->is_extra)
return FALSE;
if (!priv->filter_words)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]