[gtk/entry-fix] inspector: Don't listen for notify twice
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/entry-fix] inspector: Don't listen for notify twice
- Date: Wed, 1 May 2019 04:59:30 +0000 (UTC)
commit e7cbb7a76c0688e81fc80210870e1747a1de16da
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 1 04:44:07 2019 +0000
inspector: Don't listen for notify twice
The property list now uses property editors
for the value, which listen for updates by
themselves, so no need for the list to do it.
gtk/inspector/prop-list.c | 20 --------------------
1 file changed, 20 deletions(-)
---
diff --git a/gtk/inspector/prop-list.c b/gtk/inspector/prop-list.c
index ca84609062..3f36b2b0e7 100644
--- a/gtk/inspector/prop-list.c
+++ b/gtk/inspector/prop-list.c
@@ -574,21 +574,6 @@ gtk_inspector_prop_list_create_row (GtkInspectorPropList *pl,
return row;
}
-static void
-gtk_inspector_prop_list_prop_changed_cb (GObject *pspec,
- GParamSpec *prop,
- GtkInspectorPropList *pl)
-{
- if (!pl->priv->object)
- return;
-
-#if 0
- iter = g_hash_table_lookup (pl->priv->prop_iters, prop->name);
- if (iter != NULL)
- gtk_inspector_prop_list_update_prop (pl, iter, prop);
-#endif
-}
-
static void
cleanup_object (GtkInspectorPropList *pl)
{
@@ -644,11 +629,6 @@ gtk_inspector_prop_list_set_object (GtkInspectorPropList *pl,
if (GTK_IS_WIDGET (object))
g_signal_connect_object (object, "destroy", G_CALLBACK (cleanup_object), pl, G_CONNECT_SWAPPED);
- /* Listen for updates */
- pl->priv->notify_handler_id =
- g_signal_connect_object (object, "notify",
- G_CALLBACK (gtk_inspector_prop_list_prop_changed_cb), pl, 0);
-
gtk_widget_show (GTK_WIDGET (pl));
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]