[gtk+] accessible: Use set_widget() in destroy notify
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] accessible: Use set_widget() in destroy notify
- Date: Mon, 19 Dec 2011 15:50:17 +0000 (UTC)
commit eb27c618788009353ac280e284a13e403c91d089
Author: Benjamin Otte <otte redhat com>
Date: Sun Dec 18 13:07:07 2011 +0100
accessible: Use set_widget() in destroy notify
We don't want to bypass the unset_widget call.
gtk/gtkaccessible.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index e999b09..a84eddf 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -217,11 +217,18 @@ gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible)
}
static void
+gtk_accessible_widget_destroyed (GtkWidget *widget,
+ GtkAccessible *accessible)
+{
+ gtk_accessible_set_widget (accessible, NULL);
+}
+
+static void
gtk_accessible_real_connect_widget_destroyed (GtkAccessible *accessible)
{
GtkAccessiblePrivate *priv = accessible->priv;
if (priv->widget)
g_signal_connect (priv->widget, "destroy",
- G_CALLBACK (gtk_widget_destroyed), &priv->widget);
+ G_CALLBACK (gtk_accessible_widget_destroyed), accessible);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]