diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-07-01 19:46:13 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-07-04 12:52:30 +0200 |
commit | fa6a137478a1fd3c229ddca38c1a56a95c6b9353 (patch) | |
tree | 51e3e8d97191f98aacc80e6e601ee988d10b6995 /gtk/gtksearchbar.c | |
parent | 4eac681eba36ca48541e4b9f18d38bdf4341a8ae (diff) | |
download | gtk+-fa6a137478a1fd3c229ddca38c1a56a95c6b9353.tar.gz |
GtkSearchBar: Fix automatic entry connection
Adding an entry to the search bar didn't automatically connect
the signals as expected as the code was in the wrong branch.
https://bugzilla.gnome.org/show_bug.cgi?id=703406
Diffstat (limited to 'gtk/gtksearchbar.c')
-rw-r--r-- | gtk/gtksearchbar.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c index 57c4930789..67a5eaa1c1 100644 --- a/gtk/gtksearchbar.c +++ b/gtk/gtksearchbar.c @@ -293,16 +293,16 @@ gtk_search_bar_add (GtkContainer *container, if (bar->priv->box_center == NULL) { GTK_CONTAINER_CLASS (gtk_search_bar_parent_class)->add (container, child); + } + else + { + gtk_container_add (GTK_CONTAINER (bar->priv->box_center), child); /* If an entry is the only child, save the developer a couple of * lines of code */ if (GTK_IS_ENTRY (child)) gtk_search_bar_connect_entry (bar, GTK_ENTRY (child)); } - else - { - gtk_container_add (GTK_CONTAINER (bar->priv->box_center), child); - } } static void |