[glib] Fix icons test to compile
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix icons test to compile
- Date: Tue, 6 Jul 2010 03:15:36 +0000 (UTC)
commit c6e8d0ada84185f807b8101cada91030bd91e48a
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jul 5 12:08:29 2010 -0400
Fix icons test to compile
gio/tests/icons.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/icons.c b/gio/tests/icons.c
index 7bfd2f7..33adbfd 100644
--- a/gio/tests/icons.c
+++ b/gio/tests/icons.c
@@ -23,7 +23,7 @@ test_themed_icon (void)
g_assert_cmpstr (names[2], ==, "last");
g_assert_cmpuint (g_icon_hash (icon1), ==, 3193088045);
- icon2 = g_themed_icon_new_from_names (names2, -1);
+ icon2 = g_themed_icon_new_from_names ((gchar**)names2, -1);
g_assert (g_icon_equal (icon1, icon2));
str = g_icon_to_string (icon2);
@@ -51,6 +51,7 @@ test_emblemed_icon (void)
icon3 = g_emblemed_icon_new (icon1, emblem1);
emblems = g_emblemed_icon_get_emblems (G_EMBLEMED_ICON (icon3));
g_assert_cmpint (g_list_length (emblems), ==, 1);
+ g_assert (g_emblemed_icon_get_icon (G_EMBLEMED_ICON (icon3)) == icon1);
icon4 = g_emblemed_icon_new (icon1, emblem1);
g_emblemed_icon_add_emblem (G_EMBLEMED_ICON (icon4), emblem2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]