aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-01-25 11:11:59 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-01-25 11:11:59 +0100
commit9c857a30aa23445708c7ed7f1d00a7d0986946bd (patch)
treeb1dfef7323e798a52857401480c5d8e33af6b3d8 /tests
parent70480923e6151c8173032710beb99707bb5b9485 (diff)
downloadlibayatana-indicator-9c857a30aa23445708c7ed7f1d00a7d0986946bd.tar.gz
libayatana-indicator-9c857a30aa23445708c7ed7f1d00a7d0986946bd.tar.bz2
libayatana-indicator-9c857a30aa23445708c7ed7f1d00a7d0986946bd.zip
indicator-ng: use indicator_image_helper
gtk_icon_set_from_gicon doesn't scale rectangular icons correctly. This adds indicator_image_helper_update_from_gicon() and makes refresh_image() set a broken image instead of erroring out when an icon couldn't be found.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-indicator-ng.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/test-indicator-ng.c b/tests/test-indicator-ng.c
index 185b3ee..150cc37 100644
--- a/tests/test-indicator-ng.c
+++ b/tests/test-indicator-ng.c
@@ -122,18 +122,7 @@ test_menu (void)
g_assert_cmpstr (entry->name_hint, ==, "indicator-test");
g_assert_cmpstr (entry->accessible_desc, ==, "Test indicator");
g_assert_cmpstr (gtk_label_get_label (entry->label), ==, "Test");
- {
- GIcon *icon;
- gchar *iconstr;
-
- gtk_image_get_gicon (entry->image, &icon, NULL);
- g_assert (icon);
-
- iconstr = g_icon_to_string (icon);
- g_assert_cmpstr (iconstr, ==, "indicator-test");
-
- g_free (iconstr);
- }
+ g_assert (gtk_image_get_storage_type (entry->image) == GTK_IMAGE_STOCK);
{
GList *children;
GtkMenuItem *item;