mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
Make the action widgets internal children of GtkNotebook
So they're not included in the result of gtk_container_foreach() which preserves it as a convenient way to get the list of all notebook content widgets. Bug #601409.
This commit is contained in:
parent
6dfb21e616
commit
5bf30c2885
@ -4269,11 +4269,13 @@ gtk_notebook_forall (GtkContainer *container,
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < N_ACTION_WIDGETS; i++)
|
||||
{
|
||||
if (priv->action_widget[i])
|
||||
(* callback) (priv->action_widget[i], callback_data);
|
||||
}
|
||||
if (include_internals) {
|
||||
for (i = 0; i < N_ACTION_WIDGETS; i++)
|
||||
{
|
||||
if (priv->action_widget[i])
|
||||
(* callback) (priv->action_widget[i], callback_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static GType
|
||||
@ -7947,6 +7949,9 @@ gtk_notebook_get_action_widget (GtkNotebook *notebook,
|
||||
* the widget will be placed before or after the tabs. You can use
|
||||
* a #GtkBox if you need to pack more than one widget on the same side.
|
||||
*
|
||||
* Note that action widgets are "internal" children of the notebook and thus
|
||||
* not included in the list returned from gtk_container_foreach().
|
||||
*
|
||||
* Since: 2.20
|
||||
*/
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user