[gtk/wip/baedert/for-master: 24/31] searchbar: Use g_object_notify_by_pspec
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 24/31] searchbar: Use g_object_notify_by_pspec
- Date: Thu, 30 Jan 2020 15:49:27 +0000 (UTC)
commit 4218f99669e88773cc249cfa2df5fdc8ee4b5d9c
Author: Timm Bäder <mail baedert org>
Date: Tue Jan 28 13:51:04 2020 +0100
searchbar: Use g_object_notify_by_pspec
We already keep the pspecs around, so use them.
gtk/gtksearchbar.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c
index 51071b3049..18ed0d66e3 100644
--- a/gtk/gtksearchbar.c
+++ b/gtk/gtksearchbar.c
@@ -150,7 +150,7 @@ reveal_child_changed_cb (GObject *object,
gtk_editable_set_text (GTK_EDITABLE (priv->entry), "");
}
- g_object_notify (G_OBJECT (bar), "search-mode-enabled");
+ g_object_notify_by_pspec (G_OBJECT (bar), widget_props[PROP_SEARCH_MODE_ENABLED]);
}
static void
@@ -510,7 +510,7 @@ gtk_search_bar_set_show_close_button (GtkSearchBar *bar,
if (gtk_widget_get_visible (priv->close_button) != visible)
{
gtk_widget_set_visible (priv->close_button, visible);
- g_object_notify (G_OBJECT (bar), "show-close-button");
+ g_object_notify_by_pspec (G_OBJECT (bar), widget_props[PROP_SHOW_CLOSE_BUTTON]);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]