[seahorse/wip/nielsdg/pgp-key-properties: 1/6] pgp: KeyProperties: use avatar-default icon
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/wip/nielsdg/pgp-key-properties: 1/6] pgp: KeyProperties: use avatar-default icon
- Date: Fri, 11 Jan 2019 20:38:19 +0000 (UTC)
commit 44bf6332afd0d9a151d5f6e0a1f90a1971474b40
Author: Niels De Graef <nielsdegraef gmail com>
Date: Thu Jan 10 18:04:07 2019 +0100
pgp: KeyProperties: use avatar-default icon
If we don't have a photo, use avatar-default-symbolic.
pgp/seahorse-pgp-key-properties.c | 4 ----
pgp/seahorse-pgp-private-key-properties.ui | 2 ++
pgp/seahorse-pgp-public-key-properties.ui | 2 ++
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/pgp/seahorse-pgp-key-properties.c b/pgp/seahorse-pgp-key-properties.c
index 31331cd2..1ec39fb9 100644
--- a/pgp/seahorse-pgp-key-properties.c
+++ b/pgp/seahorse-pgp-key-properties.c
@@ -715,10 +715,6 @@ set_photoid_state (SeahorseWidget *swidget, SeahorsePgpKey *pkey)
pixbuf = photo ? seahorse_pgp_photo_get_pixbuf (photo) : NULL;
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,
GTK_ICON_SIZE_DIALOG);
- else
- gtk_image_set_from_icon_name (GTK_IMAGE (photo_image), SEAHORSE_ICON_KEY,
GTK_ICON_SIZE_DIALOG);
}
static void
diff --git a/pgp/seahorse-pgp-private-key-properties.ui b/pgp/seahorse-pgp-private-key-properties.ui
index ec4cf2f2..9e98835b 100644
--- a/pgp/seahorse-pgp-private-key-properties.ui
+++ b/pgp/seahorse-pgp-private-key-properties.ui
@@ -208,6 +208,8 @@
<property name="width_request">150</property>
<property name="height_request">160</property>
<property name="visible">True</property>
+ <property name="icon-name">avatar-default-symbolic</property>
+ <property name="icon-size">6</property>
</object>
</child>
</object>
diff --git a/pgp/seahorse-pgp-public-key-properties.ui b/pgp/seahorse-pgp-public-key-properties.ui
index c75dd18d..6e6c4488 100644
--- a/pgp/seahorse-pgp-public-key-properties.ui
+++ b/pgp/seahorse-pgp-public-key-properties.ui
@@ -240,6 +240,8 @@
<property name="height_request">160</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="icon-name">avatar-default-symbolic</property>
+ <property name="icon-size">6</property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]