Use accessor functions to access GtkStatusbar

This commit is contained in:
Javier Jardón 2010-07-13 03:05:58 +02:00
parent e6db32de44
commit bf976cc1e4
2 changed files with 5 additions and 2 deletions

View File

@ -629,5 +629,8 @@ gail_statusbar_get_character_at_offset (AtkText *text,
static GtkWidget*
get_label_from_statusbar (GtkWidget *statusbar)
{
return GTK_STATUSBAR (statusbar)->label;
GtkWidget *message_area;
message_area = gtk_statusbar_get_message_area (GTK_STATUSBAR (statusbar));
return gtk_bin_get_child (GTK_BIN (message_area));
}

View File

@ -1627,7 +1627,7 @@ statusbar_popped (GtkStatusbar *statusbar,
guint context_id,
const gchar *text)
{
if (!statusbar->messages)
if (!text)
statusbar_counter = 1;
}