diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-04-11 01:01:51 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-04-11 01:01:51 -0500 |
commit | bb571a4f91682d5d2dfdccfee3826f73ac5457f4 (patch) | |
tree | 7c2d86533ff7cc6cd6bfe3f93e499925549ec603 | |
parent | 2f67706e1bab6b64b497d3f42e95c78a591ddc16 (diff) | |
download | libayatana-indicator-bb571a4f91682d5d2dfdccfee3826f73ac5457f4.tar.gz libayatana-indicator-bb571a4f91682d5d2dfdccfee3826f73ac5457f4.tar.bz2 libayatana-indicator-bb571a4f91682d5d2dfdccfee3826f73ac5457f4.zip |
in indicator_image_helper_update(), test the image argument with GTK_IS_IMAGE before using it.
-rw-r--r-- | libindicator/indicator-image-helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libindicator/indicator-image-helper.c b/libindicator/indicator-image-helper.c index 6ad2a44..63488a1 100644 --- a/libindicator/indicator-image-helper.c +++ b/libindicator/indicator-image-helper.c @@ -143,7 +143,7 @@ indicator_image_helper_update (GtkImage * image, const gchar * name) { g_return_if_fail(name != NULL); g_return_if_fail(name[0] != '\0'); - g_return_if_fail(image != NULL); + g_return_if_fail(GTK_IS_IMAGE(image)); gboolean seen_previously = FALSE; /* Build us a GIcon */ |