[seahorse/gnome-3-4] pgp: Fix warning for icon size -1
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/gnome-3-4] pgp: Fix warning for icon size -1
- Date: Fri, 9 Mar 2012 18:26:50 +0000 (UTC)
commit b241e52dd165075ca9fdbbdc0d305324592dcab9
Author: Stef Walter <stefw gnome org>
Date: Fri Mar 9 19:26:16 2012 +0100
pgp: Fix warning for icon size -1
* Specify the dialog icon size for the photo control when
no photos on a pgp key
pgp/seahorse-pgp-key-properties.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pgp/seahorse-pgp-key-properties.c b/pgp/seahorse-pgp-key-properties.c
index 0082a75..94c7e1b 100644
--- a/pgp/seahorse-pgp-key-properties.c
+++ b/pgp/seahorse-pgp-key-properties.c
@@ -724,9 +724,9 @@ set_photoid_state (SeahorseWidget *swidget, SeahorsePgpKey *pkey)
if (pixbuf)
gtk_image_set_from_pixbuf (GTK_IMAGE (photo_image), pixbuf);
else if (etype == SEAHORSE_USAGE_PRIVATE_KEY)
- gtk_image_set_from_icon_name (GTK_IMAGE (photo_image), SEAHORSE_ICON_SECRET, (GtkIconSize)-1);
+ gtk_image_set_from_icon_name (GTK_IMAGE (photo_image), SEAHORSE_ICON_SECRET, GTK_ICON_SIZE_DIALOG);
else
- gtk_image_set_from_icon_name (GTK_IMAGE (photo_image), SEAHORSE_ICON_KEY, (GtkIconSize)-1);
+ gtk_image_set_from_icon_name (GTK_IMAGE (photo_image), SEAHORSE_ICON_KEY, GTK_ICON_SIZE_DIALOG);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]