[gtk+/quartz-integration: 502/563] Avoid excessive child_changed::added emissions
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/quartz-integration: 502/563] Avoid excessive child_changed::added emissions
- Date: Sat, 9 Jul 2011 06:48:12 +0000 (UTC)
commit b6fe13b106a5a6b7de3f9bd7b0bafa16081ed463
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jun 30 22:12:31 2011 -0400
Avoid excessive child_changed::added emissions
We are listening to page-added and emit child_changed::added
in response to that, so don't let the add_gtk handler add
extraneous extra signal emissions. This fixes the child-handling
test for GtkNotebook.
gtk/a11y/gtknotebookaccessible.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/a11y/gtknotebookaccessible.c b/gtk/a11y/gtknotebookaccessible.c
index ba40403..0b935b9 100644
--- a/gtk/a11y/gtknotebookaccessible.c
+++ b/gtk/a11y/gtknotebookaccessible.c
@@ -310,6 +310,8 @@ gtk_notebook_accessible_class_init (GtkNotebookAccessibleClass *klass)
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
GailWidgetClass *widget_class = (GailWidgetClass*)klass;
+ GailContainerClass *container_class = (GailContainerClass*)klass;
+
gobject_class->finalize = gtk_notebook_accessible_finalize;
@@ -317,6 +319,10 @@ gtk_notebook_accessible_class_init (GtkNotebookAccessibleClass *klass)
class->initialize = gtk_notebook_accessible_initialize;
widget_class->notify_gtk = gtk_notebook_accessible_notify_gtk;
+
+ /* we listen to page-added/-removed, so we don't care about these */
+ container_class->add_gtk = NULL;
+ container_class->remove_gtk = NULL;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]