[seahorse/refactor: 26/33] Add proper icons and text for the GnuPG and OPENSSH sources



commit 770736921b41dcac646c5f03d1c777e5bf62ae22
Author: Stef Walter <stefw collabora co uk>
Date:   Fri Oct 14 07:47:10 2011 +0200

    Add proper icons and text for the GnuPG and OPENSSH sources

 pgp/seahorse-gpgme-keyring.c |   10 +++-------
 ssh/seahorse-ssh-key.c       |    1 -
 ssh/seahorse-ssh-source.c    |    8 +++++---
 3 files changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/pgp/seahorse-gpgme-keyring.c b/pgp/seahorse-gpgme-keyring.c
index 36e2ebc..ce4de65 100644
--- a/pgp/seahorse-gpgme-keyring.c
+++ b/pgp/seahorse-gpgme-keyring.c
@@ -955,19 +955,15 @@ seahorse_gpgme_keyring_get_property (GObject *obj,
                                      GValue *value,
                                      GParamSpec *pspec)
 {
-#if 0
-	SeahorseGpgmeKeyring *self = SEAHORSE_GPGME_KEYRING (obj);
-#endif
-
 	switch (prop_id) {
 	case PROP_LABEL:
-		g_value_set_string (value, _("To Do Keys"));
+		g_value_set_string (value, _("GnuPG keyring"));
 		break;
 	case PROP_DESCRIPTION:
-		g_value_set_string (value, _("To Do Description"));
+		g_value_set_string (value, _("GnuPG: default keyring directory"));
 		break;
 	case PROP_ICON:
-		g_value_take_object (value, g_themed_icon_new (GTK_STOCK_DIALOG_QUESTION));
+		g_value_take_object (value, g_themed_icon_new (GCR_ICON_HOME_DIRECTORY));
 		break;
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, prop_id, pspec);
diff --git a/ssh/seahorse-ssh-key.c b/ssh/seahorse-ssh-key.c
index e81adb7..5121f00 100644
--- a/ssh/seahorse-ssh-key.c
+++ b/ssh/seahorse-ssh-key.c
@@ -127,7 +127,6 @@ changed_key (SeahorseSSHKey *self)
 
 	identifier = seahorse_ssh_key_calc_identifier (self->keydata->fingerprint);
 
-	icon = g_themed_icon_new (SEAHORSE_ICON_KEY_SSH);
 	g_object_set (obj,
 	              "markup", markup,
 	              "label", display,
diff --git a/ssh/seahorse-ssh-source.c b/ssh/seahorse-ssh-source.c
index 5bc7bad..b08f5e7 100644
--- a/ssh/seahorse-ssh-source.c
+++ b/ssh/seahorse-ssh-source.c
@@ -223,16 +223,18 @@ seahorse_ssh_source_get_property (GObject *obj,
                                   GParamSpec *pspec)
 {
 	SeahorseSSHSource *self = SEAHORSE_SSH_SOURCE (obj);
+	gchar *text;
 
 	switch (prop_id) {
 	case PROP_LABEL:
-		g_value_set_string (value, _("To SSH Keys"));
+		g_value_set_string (value, _("OpenSSH directory"));
 		break;
 	case PROP_DESCRIPTION:
-		g_value_set_string (value, _("To Do Description"));
+		text = g_strdup_printf (_("OpenSSH: %s"), "~/.ssh/");
+		g_value_take_string (value, text);
 		break;
 	case PROP_ICON:
-		g_value_take_object (value, g_themed_icon_new (GTK_STOCK_DIALOG_QUESTION));
+		g_value_take_object (value, g_themed_icon_new (GCR_ICON_HOME_DIRECTORY));
 		break;
 	case PROP_BASE_DIRECTORY:
 		g_value_set_string (value, self->priv->ssh_homedir);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]