Just use the directory name for the home dir. (#325817, Federico Mena

2006-01-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserbutton.c (model_add_special): Just use the
	directory name for the home dir.  (#325817, Federico Mena Quintero)
This commit is contained in:
Matthias Clasen 2006-01-06 21:49:59 +00:00 committed by Matthias Clasen
parent dd402c49f8
commit fd96117f72
3 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2006-01-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (model_add_special): Just use the
directory name for the home dir. (#325817, Federico Mena Quintero)
* gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable
to TRUE.
(gtk_text_tag_class_init): The default value for the direction

View File

@ -1,5 +1,8 @@
2006-01-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserbutton.c (model_add_special): Just use the
directory name for the home dir. (#325817, Federico Mena Quintero)
* gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable
to TRUE.
(gtk_text_tag_class_init): The default value for the direction

View File

@ -65,7 +65,6 @@
#define GTK_FILE_CHOOSER_BUTTON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonPrivate))
#define DEFAULT_TITLE N_("Select A File")
#define HOME_DISPLAY_NAME N_("Home")
#define DESKTOP_DISPLAY_NAME N_("Desktop")
#define FALLBACK_DISPLAY_NAME N_("(None)")
#define FALLBACK_ICON_NAME "stock_unknown"
@ -1331,6 +1330,7 @@ static inline void
model_add_special (GtkFileChooserButton *button)
{
const gchar *homedir;
const gchar *display_name;
gchar *desktopdir = NULL;
GtkListStore *store;
GtkTreeIter iter;
@ -1346,6 +1346,7 @@ model_add_special (GtkFileChooserButton *button)
if (homedir)
{
path = gtk_file_system_filename_to_path (button->priv->fs, homedir);
display_name = get_display_name_for_path (button->priv->fs, path);
pixbuf = gtk_file_system_render_icon (button->priv->fs, path,
GTK_WIDGET (button),
button->priv->icon_size, NULL);
@ -1353,7 +1354,7 @@ model_add_special (GtkFileChooserButton *button)
pos++;
gtk_list_store_set (store, &iter,
ICON_COLUMN, pixbuf,
DISPLAY_NAME_COLUMN, _(HOME_DISPLAY_NAME),
DISPLAY_NAME_COLUMN, display_name,
TYPE_COLUMN, ROW_TYPE_SPECIAL,
DATA_COLUMN, path,
-1);