[gnome-initial-setup] region-chooser: Remove gtk_container_add warning
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] region-chooser: Remove gtk_container_add warning
- Date: Mon, 9 Dec 2013 03:15:10 +0000 (UTC)
commit 3b037f2d574e8294da95f6980881c6a4efd023b9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Dec 8 21:58:33 2013 -0500
region-chooser: Remove gtk_container_add warning
We can't remove the more_item from the container...
.../pages/region/cc-region-chooser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/region/cc-region-chooser.c
b/gnome-initial-setup/pages/region/cc-region-chooser.c
index 722fb09..c792dc2 100644
--- a/gnome-initial-setup/pages/region/cc-region-chooser.c
+++ b/gnome-initial-setup/pages/region/cc-region-chooser.c
@@ -296,8 +296,6 @@ add_regions (CcRegionChooser *chooser,
add_one_region (chooser, locale_id);
}
- gtk_container_add (GTK_CONTAINER (priv->region_list), priv->more_item);
-
gtk_widget_show_all (priv->region_list);
}
@@ -521,6 +519,8 @@ cc_region_chooser_constructed (GObject *object)
G_OBJECT_CLASS (cc_region_chooser_parent_class)->constructed (object);
priv->more_item = more_widget_new ();
+ gtk_container_add (GTK_CONTAINER (priv->region_list), priv->more_item);
+
priv->no_results = no_results_widget_new ();
priv->regions = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]