summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2009-11-10 15:40:29 +0100
committerChristian Persch <chpe@gnome.org>2009-11-28 18:05:09 +0100
commit5bf30c2885253f7687c4f7e03e5f9fd2c9d82922 (patch)
treea383c091d9130b0c629a56135d47b1219871de2d /gtk
parent6dfb21e616bdf1e1db7ed86bff08fcb68210f17e (diff)
downloadgtk+-5bf30c2885253f7687c4f7e03e5f9fd2c9d82922.tar.gz
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.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtknotebook.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 73afbc19d0..cdfda51e3a 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -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