[gnome-control-center/gnome-3-8] region: Remove the "None" input source row when adding a real one
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] region: Remove the "None" input source row when adding a real one
- Date: Tue, 12 Mar 2013 13:59:14 +0000 (UTC)
commit 051ca9b9bb4acd2d708967317ff7e3178ad506da
Author: Rui Matos <tiagomatos gmail com>
Date: Sun Mar 10 04:02:56 2013 +0100
region: Remove the "None" input source row when adding a real one
https://bugzilla.gnome.org/show_bug.cgi?id=694887
panels/region/cc-region-panel.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index 92e4f94..3eb54c6 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -672,6 +672,15 @@ add_input_row (CcRegionPanel *self,
GtkWidget *label;
GtkWidget *image;
+ if (priv->login) {
+ GList *l;
+ l = gtk_container_get_children (GTK_CONTAINER (priv->input_list));
+ if (l && l->next == NULL &&
+ g_strcmp0 (g_object_get_data (G_OBJECT (l->data), "type"), "none") == 0)
+ gtk_container_remove (GTK_CONTAINER (priv->input_list), GTK_WIDGET (l->data));
+ g_list_free (l);
+ }
+
row = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
label = gtk_label_new (name);
gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]