[Xfce4-commits] [xfce/thunar] 01/01: Computer (Bug #16472) - Change menu tooltip - use the predefined sorting - Fixed comments
noreply at xfce.org
noreply at xfce.org
Fri Mar 13 22:19:36 CET 2020
This is an automated email from the git hooks/post-receive script.
a l e x p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit 7acdd87ff7dbf10a3dfd4ea6a263a9aeca7817b8
Author: Yousuf Philips <philipz85 at hotmail.com>
Date: Tue Mar 10 23:04:12 2020 +0400
Computer (Bug #16472)
- Change menu tooltip
- use the predefined sorting
- Fixed comments
---
thunar/thunar-shortcuts-model.c | 3 +--
thunar/thunar-window.c | 12 ++++++------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c
index 9e954d2..52e68e4 100644
--- a/thunar/thunar-shortcuts-model.c
+++ b/thunar/thunar-shortcuts-model.c
@@ -1074,10 +1074,9 @@ thunar_shortcuts_model_shortcut_places (ThunarShortcutsModel *model)
if (file != NULL)
{
shortcut = g_slice_new0 (ThunarShortcut);
- shortcut->group = THUNAR_SHORTCUT_GROUP_PLACES_DEFAULT;
+ shortcut->group = THUNAR_SHORTCUT_GROUP_PLACES_COMPUTER;
shortcut->name = g_strdup (_("Computer"));
shortcut->file = file;
- shortcut->sort_id = -1;
shortcut->gicon = g_themed_icon_new ("computer");
shortcut->hidden = thunar_shortcuts_model_get_hidden (model, shortcut);
thunar_shortcuts_model_add_shortcut (model, shortcut);
diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 945d864..db2f267 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -378,7 +378,7 @@ static GtkActionEntry action_entries[] =
{ "open-parent", "go-up-symbolic", N_ ("Open _Parent"), "<alt>Up", N_ ("Open the parent folder"), G_CALLBACK (thunar_window_action_go_up), },
{ "open-home", "go-home-symbolic", N_ ("_Home"), "<alt>Home", N_ ("Go to the home folder"), G_CALLBACK (thunar_window_action_open_home), },
{ "open-desktop", "user-desktop", N_ ("Desktop"), NULL, N_ ("Go to the desktop folder"), G_CALLBACK (thunar_window_action_open_desktop), },
- { "open-computer", "computer", N_ ("Computer"), NULL, N_ ("Go to the computer folder"), G_CALLBACK (thunar_window_action_open_computer), },
+ { "open-computer", "computer", N_ ("Computer"), NULL, N_ ("Browse all local and remote disks and folders accessible from this computer"), G_CALLBACK (thunar_window_action_open_computer), },
{ "open-file-system", "drive-harddisk", N_ ("File System"), NULL, N_ ("Browse the file system"), G_CALLBACK (thunar_window_action_open_file_system), },
{ "open-network", "network-workgroup", N_("B_rowse Network"), NULL, N_ ("Browse local network connections"), G_CALLBACK (thunar_window_action_open_network), },
{ "open-templates", "text-x-generic-template", N_("T_emplates"), NULL, N_ ("Go to the templates folder"), G_CALLBACK (thunar_window_action_open_templates), },
@@ -3107,25 +3107,25 @@ thunar_window_action_open_computer (GtkAction *action,
_thunar_return_if_fail (THUNAR_IS_WINDOW (window));
- /* determine the path to the computer directory */
+ /* determine the computer location */
computer = thunar_g_file_new_for_computer ();
- /* determine the file for the computer directory */
+ /* determine the file for this location */
computer_file = thunar_file_get (computer, &error);
if (G_UNLIKELY (computer_file == NULL))
{
/* display an error to the user */
- thunar_dialogs_show_error (GTK_WIDGET (window), error, _("Failed to open the computer folder"));
+ thunar_dialogs_show_error (GTK_WIDGET (window), error, _("Failed to browse the computer"));
g_error_free (error);
}
else
{
- /* open the computer folder */
+ /* open the computer location */
thunar_window_set_current_directory (window, computer_file);
g_object_unref (G_OBJECT (computer_file));
}
- /* release our reference on the computer path */
+ /* release our reference on the location itself */
g_object_unref (computer);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list