[gtk+] accessible: Check the widgeyt actually changed when setting
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] accessible: Check the widgeyt actually changed when setting
- Date: Mon, 19 Dec 2011 15:50:02 +0000 (UTC)
commit 5789fd983b2e1d8c8fafebd4e706a2e13729905c
Author: Benjamin Otte <otte redhat com>
Date: Sun Dec 18 07:30:23 2011 +0100
accessible: Check the widgeyt actually changed when setting
gtk/gtkaccessible.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index 3eebc6b..ebb9e34 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -137,9 +137,16 @@ void
gtk_accessible_set_widget (GtkAccessible *accessible,
GtkWidget *widget)
{
+ GtkAccessiblePrivate *priv;
+
g_return_if_fail (GTK_IS_ACCESSIBLE (accessible));
- accessible->priv->widget = widget;
+ priv = accessible->priv;
+
+ if (priv->widget == widget)
+ return;
+
+ priv->widget = widget;
g_object_notify (G_OBJECT (accessible), "widget");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]