Skip to content

Commit

Permalink
Eject/unmount icon & new folder icon (#1811)
Browse files Browse the repository at this point in the history
* Add symbolic icon for eject/unmount

to the right-click action

* Use folder-new icon in nemos toolbar

The right-click action `Create New Folder` uses the
`folder-new-symbolic` icon.
There's also an option to show `Create New Folder` in nemos toolbar. It
uses `folder-symbolic` icon. Change this to use the same icon as for the
right-click action.
  • Loading branch information
NikoKrause authored and clefebvre committed Apr 20, 2018
1 parent de713db commit bb99c2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/nemo-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -8323,11 +8323,11 @@ static const GtkActionEntry directory_view_entries[] = {
/* label, accelerator */ N_("_Mount"), NULL,
/* tooltip */ N_("Mount the selected volume"),
G_CALLBACK (action_mount_volume_callback) },
/* name, stock id */ { "Unmount Volume", NULL,
/* name, stock id */ { "Unmount Volume", "media-eject-symbolic",
/* label, accelerator */ N_("_Unmount"), NULL,
/* tooltip */ N_("Unmount the selected volume"),
G_CALLBACK (action_unmount_volume_callback) },
/* name, stock id */ { "Eject Volume", NULL,
/* name, stock id */ { "Eject Volume", "media-eject-symbolic",
/* label, accelerator */ N_("_Eject"), NULL,
/* tooltip */ N_("Eject the selected volume"),
G_CALLBACK (action_eject_volume_callback) },
Expand All @@ -8347,11 +8347,11 @@ static const GtkActionEntry directory_view_entries[] = {
/* label, accelerator */ N_("_Mount"), NULL,
/* tooltip */ N_("Mount the volume associated with the open folder"),
G_CALLBACK (action_self_mount_volume_callback) },
/* name, stock id */ { "Self Unmount Volume", NULL,
/* name, stock id */ { "Self Unmount Volume", "media-eject-symbolic",
/* label, accelerator */ N_("_Unmount"), NULL,
/* tooltip */ N_("Unmount the volume associated with the open folder"),
G_CALLBACK (action_self_unmount_volume_callback) },
/* name, stock id */ { "Self Eject Volume", NULL,
/* name, stock id */ { "Self Eject Volume", "media-eject-symbolic",
/* label, accelerator */ N_("_Eject"), NULL,
/* tooltip */ N_("Eject the volume associated with the open folder"),
G_CALLBACK (action_self_eject_volume_callback) },
Expand Down Expand Up @@ -8419,11 +8419,11 @@ static const GtkActionEntry directory_view_entries[] = {
/* label, accelerator */ N_("_Mount"), NULL,
/* tooltip */ N_("Mount the volume associated with this folder"),
G_CALLBACK (action_location_mount_volume_callback) },
/* name, stock id */ { "Location Unmount Volume", NULL,
/* name, stock id */ { "Location Unmount Volume", "media-eject-symbolic",
/* label, accelerator */ N_("_Unmount"), NULL,
/* tooltip */ N_("Unmount the volume associated with this folder"),
G_CALLBACK (action_location_unmount_volume_callback) },
/* name, stock id */ { "Location Eject Volume", NULL,
/* name, stock id */ { "Location Eject Volume", "media-eject-symbolic",
/* label, accelerator */ N_("_Eject"), NULL,
/* tooltip */ N_("Eject the volume associated with this folder"),
G_CALLBACK (action_location_eject_volume_callback) },
Expand Down
2 changes: 1 addition & 1 deletion src/nemo-window-menus.c
Original file line number Diff line number Diff line change
Expand Up @@ -1503,7 +1503,7 @@ nemo_window_create_toolbar_action_group (NemoWindow *window)
gtk_action_group_add_action (action_group, GTK_ACTION (action));
g_signal_connect (action, "activate",
G_CALLBACK (action_new_folder_callback), window);
gtk_action_set_icon_name (GTK_ACTION (action), "folder-symbolic");
gtk_action_set_icon_name (GTK_ACTION (action), "folder-new-symbolic");
g_object_unref (action);

action = GTK_ACTION (gtk_action_new (NEMO_ACTION_OPEN_IN_TERMINAL,
Expand Down

0 comments on commit bb99c2b

Please sign in to comment.