diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-02-16 21:58:10 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-02-16 21:58:10 -0500 |
commit | f74632993341828b09f955d62471b731b06276af (patch) | |
tree | a5252e8b117f3ad3da8c04d921b564ef19463ef2 /modules/other | |
parent | 405b54c72e35dba0ec47c28f123af3438969f6df (diff) | |
download | gtk+-f74632993341828b09f955d62471b731b06276af.tar.gz |
Fix gailstatusbar problems
Reported in https://bugzilla.gnome.org/show_bug.cgi?id=630971
Diffstat (limited to 'modules/other')
-rw-r--r-- | modules/other/gail/gailstatusbar.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/other/gail/gailstatusbar.c b/modules/other/gail/gailstatusbar.c index d3ebeead59..0216862418 100644 --- a/modules/other/gail/gailstatusbar.c +++ b/modules/other/gail/gailstatusbar.c @@ -630,7 +630,21 @@ static GtkWidget* get_label_from_statusbar (GtkWidget *statusbar) { GtkWidget *message_area; + GList *children, *l; + GtkWidget *child; message_area = gtk_statusbar_get_message_area (GTK_STATUSBAR (statusbar)); - return gtk_bin_get_child (GTK_BIN (message_area)); + + children = gtk_container_get_children (GTK_CONTAINER (message_area)); + for (l = children; l; l = l->next) + { + child = l->data; + if (GTK_IS_LABEL (child)) + break; + child = NULL; + } + + g_list_free (children); + + return child; } |