GtkDialog
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: gtk-app-devel-list gnome org
- Subject: GtkDialog
- Date: Tue, 19 Oct 2004 16:46:26 -0400
Hi all,
I need to extract all children from a dialog that are not "internal"
like the difference between gtk_container_foreach and gtk_container_forall.
So before saying "blast it" and hacking my way through... I'll ask:
is there any support for that ?
Cheers,
-Tristan
========================================
Note: this is what I want to avoid
========================================
GList *
dialog_get_public_children(GtkDialog *dialog)
{
GList *children = gtk_container_get_children(dialog->vbox);
GList *l = children;
GList *public_children = NULL;
while (l && l->data) {
if (l->data != dialog->action_area &&
l->data != dialog->seperator &&
(GTK_IS_MESSAGE_DIALOG(dialog) == FALSE ||
l->data != GTK_MESSAGE_DIALOG(dialog)->image) &&
(GTK_IS_MESSAGE_DIALOG(dialog) == FALSE ||
l->data != GTK_MESSAGE_DIALOG(dialog)->label) && ...) {
public_children = g_list_append(public_children, l->data);
}
l = l->next;
}
g_list_free(children);
return public_children;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]