[gtk+/gtk-2-90: 127/158] Use gtk_label_get_text() instead direct access



commit aea1debc5e23d11fab09d8192b541be0eda49362
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Nov 18 04:13:05 2009 +0100

    Use gtk_label_get_text() instead direct access

 gtk/tests/builder.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/tests/builder.c b/gtk/tests/builder.c
index 1e2d86a..33f2f84 100644
--- a/gtk/tests/builder.c
+++ b/gtk/tests/builder.c
@@ -2420,10 +2420,10 @@ test_menus (void)
   gtk_accel_label_refetch (GTK_ACCEL_LABEL (sample_accel_label));
   gtk_accel_label_refetch (GTK_ACCEL_LABEL (item_accel_label));
 
-  g_assert (GTK_ACCEL_LABEL (sample_accel_label)->accel_string != NULL);
-  g_assert (GTK_ACCEL_LABEL (item_accel_label)->accel_string != NULL);
-  g_assert (strcmp (GTK_ACCEL_LABEL (item_accel_label)->accel_string, 
-		    GTK_ACCEL_LABEL (sample_accel_label)->accel_string) == 0);
+  g_assert (gtk_label_get_text (GTK_LABEL (sample_accel_label)) != NULL);
+  g_assert (gtk_label_get_text (GTK_LABEL (item_accel_label)) != NULL);
+  g_assert (strcmp (gtk_label_get_text (GTK_LABEL (item_accel_label)),
+		    gtk_label_get_text (GTK_LABEL (sample_accel_label))) == 0);
 
   /* Check the menu hierarchy worked here  */
   g_assert (get_parent_menubar (item));



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