diff options
author | Timm Bäder <mail@baedert.org> | 2020-01-28 13:51:56 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-07 13:15:59 -0500 |
commit | 64c6229f54bb2a60443fa47d394332938df6ab18 (patch) | |
tree | 985cad94d9d8d46c571f6105b2275e8ae8f171d4 | |
parent | 60be37d63ad0df6ab7656c16318a4c4a058ae684 (diff) | |
download | gtk+-64c6229f54bb2a60443fa47d394332938df6ab18.tar.gz |
searchbar: Use proper getter in _get_property()
Instead of retuning a seemingly random boolean, just use
gtk_search_bar_get_search_mode().
-rw-r--r-- | gtk/gtksearchbar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c index 18ed0d66e3..484e97342c 100644 --- a/gtk/gtksearchbar.c +++ b/gtk/gtksearchbar.c @@ -222,12 +222,11 @@ gtk_search_bar_get_property (GObject *object, GParamSpec *pspec) { GtkSearchBar *bar = GTK_SEARCH_BAR (object); - GtkSearchBarPrivate *priv = gtk_search_bar_get_instance_private (bar); switch (prop_id) { case PROP_SEARCH_MODE_ENABLED: - g_value_set_boolean (value, priv->reveal_child); + g_value_set_boolean (value, gtk_search_bar_get_search_mode (bar)); break; case PROP_SHOW_CLOSE_BUTTON: g_value_set_boolean (value, gtk_search_bar_get_show_close_button (bar)); |