Skip to content

Commit

Permalink
Remove custom person icon
Browse files Browse the repository at this point in the history
We can use "avatar-default-symbolic", which is provided by the XDG icon
spec, so it should work for everyone. It's also nicer for non-installed
environments (such as when developing).
  • Loading branch information
nielsdg committed Mar 2, 2019
1 parent a999b64 commit 268dc8a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion common/icons.vala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ namespace Seahorse {
public const string ICON_KEY = "seahorse-key";
public const string ICON_SECRET = "seahorse-key-personal";
public const string ICON_KEY_SSH = "seahorse-key-ssh";
public const string ICON_PERSON = "seahorse-person";
public const string ICON_SIGN = "seahorse-sign";
public const string ICON_SIGN_OK = "seahorse-sign-ok";
public const string ICON_SIGN_BAD = "seahorse-sign-bad";
Expand Down
Binary file removed data/icons/hicolor/22x22/apps/seahorse-person.png
Binary file not shown.
Binary file removed data/icons/hicolor/48x48/apps/seahorse-person.png
Binary file not shown.
2 changes: 1 addition & 1 deletion data/icons/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ foreach size: [ 22, 48 ]

# ..../apps
icon_subfolder = join_paths('hicolor', icon_size_str, 'apps')
foreach private_icon: [ 'key', 'key-personal', 'key-ssh', 'person' ]
foreach private_icon: [ 'key', 'key-personal', 'key-ssh' ]
install_data(
join_paths(icon_subfolder, 'seahorse-@[email protected]'.format(private_icon)),
install_dir: join_paths(private_icons_install_dir, icon_subfolder),
Expand Down
6 changes: 2 additions & 4 deletions pgp/seahorse-pgp-key-properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ names_populate (SeahorsePgpKeyProperties *self, GtkTreeStore *store, SeahorsePgp
g_autoptr(GCancellable) cancellable = NULL;

uid = SEAHORSE_PGP_UID (u->data);
icon = g_themed_icon_new (SEAHORSE_ICON_PERSON);
icon = g_themed_icon_new ("avatar-default-symbolic");
gtk_tree_store_append (store, &uiditer, NULL);
gtk_tree_store_set (store, &uiditer,
UIDSIG_OBJECT, uid,
Expand Down Expand Up @@ -446,7 +446,6 @@ do_names (SeahorsePgpKeyProperties *self)

/* Icon column */
renderer = gtk_cell_renderer_pixbuf_new ();
g_object_set (renderer, "stock-size", GTK_ICON_SIZE_LARGE_TOOLBAR, NULL);
gtk_tree_view_insert_column_with_attributes (self->names_tree,
-1, "", renderer,
"gicon", UIDSIG_ICON, NULL);
Expand Down Expand Up @@ -844,7 +843,6 @@ do_owner (SeahorsePgpKeyProperties *self)

/* Make the columns for the view */
renderer = gtk_cell_renderer_pixbuf_new ();
g_object_set (renderer, "stock-size", GTK_ICON_SIZE_LARGE_TOOLBAR, NULL);
gtk_tree_view_insert_column_with_attributes (self->owner_userid_tree,
-1, "", renderer,
"gicon", UID_ICON, NULL);
Expand All @@ -859,7 +857,7 @@ do_owner (SeahorsePgpKeyProperties *self)
g_autoptr(GIcon) icon = NULL;

markup = seahorse_object_get_markup (l->data);
icon = g_themed_icon_new (SEAHORSE_ICON_PERSON);
icon = g_themed_icon_new ("avatar-default-symbolic");
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
UID_OBJECT, l->data,
Expand Down

0 comments on commit 268dc8a

Please sign in to comment.