mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-05 02:11:08 +00:00
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.
This commit is contained in:
parent
318192b937
commit
0bbe09a28e
@ -310,6 +310,8 @@ gtk_notebook_accessible_class_init (GtkNotebookAccessibleClass *klass)
|
|||||||
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
|
||||||
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
|
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
|
||||||
GailWidgetClass *widget_class = (GailWidgetClass*)klass;
|
GailWidgetClass *widget_class = (GailWidgetClass*)klass;
|
||||||
|
GailContainerClass *container_class = (GailContainerClass*)klass;
|
||||||
|
|
||||||
|
|
||||||
gobject_class->finalize = gtk_notebook_accessible_finalize;
|
gobject_class->finalize = gtk_notebook_accessible_finalize;
|
||||||
|
|
||||||
@ -317,6 +319,10 @@ gtk_notebook_accessible_class_init (GtkNotebookAccessibleClass *klass)
|
|||||||
class->initialize = gtk_notebook_accessible_initialize;
|
class->initialize = gtk_notebook_accessible_initialize;
|
||||||
|
|
||||||
widget_class->notify_gtk = gtk_notebook_accessible_notify_gtk;
|
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
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user