GFile *renamed_file;
GtkTreeViewColumn *list_name_column;
- GtkCellRenderer *list_name_renderer;
GtkCellRenderer *list_pixbuf_renderer;
GtkTreeViewColumn *list_time_column;
GtkCellRenderer *list_date_renderer;
"gicon", MODEL_COL_ICON,
"sensitive", MODEL_COL_IS_SENSITIVE,
NULL);
- gtk_tree_view_column_set_attributes (impl->list_name_column,
- impl->list_name_renderer,
- "text", MODEL_COL_NAME,
- "ellipsize", MODEL_COL_ELLIPSIZE,
- "sensitive", MODEL_COL_IS_SENSITIVE,
- NULL);
gtk_tree_view_column_set_attributes (impl->list_size_column,
impl->list_size_renderer,
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserWidget, search_spinner);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserWidget, list_name_column);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserWidget, list_pixbuf_renderer);
- gtk_widget_class_bind_template_child (widget_class, GtkFileChooserWidget, list_name_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserWidget, list_time_column);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserWidget, list_date_renderer);
gtk_widget_class_bind_template_child (widget_class, GtkFileChooserWidget, list_time_renderer);
PROP_0,
PROP_FILE,
PROP_FILE_INFO,
+ PROP_NAME,
N_PROPS,
};
g_value_set_object (value, self->node->info);
break;
+ case PROP_NAME:
+ g_value_set_string (value, g_file_info_get_display_name (self->node->info));
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
G_TYPE_FILE_INFO,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+ item_properties[PROP_NAME] =
+ g_param_spec_string ("name", NULL, NULL, "",
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+
g_object_class_install_properties (object_class, N_PROPS, item_properties);
}
<property name="vexpand">1</property>
<child>
<object class="GtkColumnView" id="browse_files_column_view">
+
+ <child>
+ <object class="GtkColumnViewColumn" id="column_view_name_column">
+ <property name="title" translatable="yes">Name</property>
+ <property name="expand">1</property>
+ <property name="resizable">1</property>
+ <property name="factory">
+ <object class="GtkBuilderListItemFactory">
+ <property name="bytes"><![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <template class="GtkListItem">
+ <property name="child">
+ <object class="GtkBox">
+ <child>
+ <object class="GtkInscription">
+ <property name="hexpand">1</property>
+ <property name="xalign">0</property>
+ <property name="min-chars">10</property>
+ <binding name="text">
+ <lookup type="GtkFileSystemItem" name="name">
+ <lookup name="item">GtkListItem</lookup>
+ </lookup>
+ </binding>
+ </object>
+ </child>
+ </object>
+ </property>
+ </template>
+</interface>
+ ]]></property>
+ </object>
+ </property>
+ </object>
+ </child>
+
</object>
</child>
</object>
<property name="xpad">6</property>
</object>
</child>
- <child>
- <object class="GtkCellRendererText" id="list_name_renderer">
- <property name="width-chars">10</property>
- <property name="ellipsize">3</property>
- </object>
- </child>
</object>
</child>
<child>