[gtk+/gtk-2-90: 128/156] Use gtk_label_get_text() instead direct access
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-90: 128/156] Use gtk_label_get_text() instead direct access
- Date: Sat, 23 Jan 2010 05:47:26 +0000 (UTC)
commit 2d82a1f75daf9a08471b9f82dca5eb1ab7aa279f
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 8163a7c..700ccb5 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]