summaryrefslogtreecommitdiff
path: root/gtk/gtkpathbar.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2005-10-04 20:08:32 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2005-10-04 20:08:32 +0000
commit5a659963337ba25351435c2d4711c07e86761966 (patch)
tree0909213aa37eb1754a0f015402be02a0580fb526 /gtk/gtkpathbar.c
parentde3cf6c83d486ede68b34370e0e16d9b693277e5 (diff)
downloadgtk+-5a659963337ba25351435c2d4711c07e86761966.tar.gz
Don't special-case Home and Desktop; just use their real names on the file
2005-10-04 Federico Mena Quintero <federico@ximian.com> * gtk/gtkpathbar.c (get_dir_name): Don't special-case Home and Desktop; just use their real names on the file system for the user-visible names. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_class_init): Add a "desktop-folder" binding signal, and bind it to M-d by default. (desktop_folder_handler): Implement the default handler. (home_folder_handler): Use a helper function. (switch_to_shortcut): New helper function. (shortcuts_append_home): Don't special-case the name of "Home"; just use the folder name.
Diffstat (limited to 'gtk/gtkpathbar.c')
-rw-r--r--gtk/gtkpathbar.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 468b650599..cfaff68000 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1014,13 +1014,7 @@ button_data_free (ButtonData *button_data)
static const char *
get_dir_name (ButtonData *button_data)
{
- if (button_data->type == HOME_BUTTON)
- return _("Home");
- else if (button_data->type == DESKTOP_BUTTON)
- return _("Desktop");
- else
- return button_data->dir_name;
-
+ return button_data->dir_name;
}
/* We always want to request the same size for the label, whether