[gtk+/refactor: 102/106] Use accessor functions to access GtkStatusbar



commit bf976cc1e4d3d48e1538f12ac4833398e5c3961b
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Jul 13 03:05:58 2010 +0200

    Use accessor functions to access GtkStatusbar

 modules/other/gail/gailstatusbar.c |    5 ++++-
 tests/testgtk.c                    |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/modules/other/gail/gailstatusbar.c b/modules/other/gail/gailstatusbar.c
index 2b7c63f..d3ebeea 100644
--- a/modules/other/gail/gailstatusbar.c
+++ b/modules/other/gail/gailstatusbar.c
@@ -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));
 }
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 72269ed..c38c6d4 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -1627,7 +1627,7 @@ statusbar_popped (GtkStatusbar  *statusbar,
 		  guint          context_id,
 		  const gchar	*text)
 {
-  if (!statusbar->messages)
+  if (!text)
     statusbar_counter = 1;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]