[gnome-initial-setup] keyboard: Ensure that we show the selected input source
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] keyboard: Ensure that we show the selected input source
- Date: Thu, 30 Oct 2014 18:01:45 +0000 (UTC)
commit 5fb41bfd440b10ae1ee6ce5570e61ba71366d60f
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Oct 30 17:55:28 2014 +0100
keyboard: Ensure that we show the selected input source
This will become important in a coming commit that will pre-select the
system keyboard layout if one is set.
.../pages/keyboard/cc-input-chooser.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
index 7918d1a..f11c708 100644
--- a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
+++ b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
@@ -45,7 +45,7 @@
#define INPUT_SOURCE_TYPE_XKB "xkb"
#define INPUT_SOURCE_TYPE_IBUS "ibus"
-#define MIN_ROWS 6
+#define MIN_ROWS 5
struct _CcInputChooserPrivate
{
@@ -274,6 +274,9 @@ sync_checkmark (GtkWidget *row,
else
should_be_visible = g_strcmp0 (widget->id, priv->id) == 0 && g_strcmp0 (widget->type,
priv->type) == 0;
gtk_widget_set_opacity (widget->checkmark, should_be_visible ? 1.0 : 0.0);
+
+ if (widget->is_extra && should_be_visible)
+ widget->is_extra = FALSE;
}
static void
@@ -283,6 +286,7 @@ sync_all_checkmarks (CcInputChooser *chooser)
gtk_container_foreach (GTK_CONTAINER (priv->input_list),
sync_checkmark, chooser);
+ gtk_list_box_invalidate_filter (GTK_LIST_BOX (priv->input_list));
}
static GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]