mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Use accessor functions to access GtkStatusbar
This commit is contained in:
parent
e6db32de44
commit
bf976cc1e4
@ -629,5 +629,8 @@ gail_statusbar_get_character_at_offset (AtkText *text,
|
|||||||
static GtkWidget*
|
static GtkWidget*
|
||||||
get_label_from_statusbar (GtkWidget *statusbar)
|
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));
|
||||||
}
|
}
|
||||||
|
@ -1627,7 +1627,7 @@ statusbar_popped (GtkStatusbar *statusbar,
|
|||||||
guint context_id,
|
guint context_id,
|
||||||
const gchar *text)
|
const gchar *text)
|
||||||
{
|
{
|
||||||
if (!statusbar->messages)
|
if (!text)
|
||||||
statusbar_counter = 1;
|
statusbar_counter = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user