From 9c857a30aa23445708c7ed7f1d00a7d0986946bd Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Fri, 25 Jan 2013 11:11:59 +0100 Subject: 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. --- tests/test-indicator-ng.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'tests') 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; -- cgit v1.2.3