aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/meta.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/meta.c')
-rw-r--r--src/plugins/fs/meta.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/plugins/fs/meta.c b/src/plugins/fs/meta.c
index e8264554..50d41729 100644
--- a/src/plugins/fs/meta.c
+++ b/src/plugins/fs/meta.c
@@ -63,6 +63,7 @@ void createMetaDataListTreeView(GladeXML * xml,
63 GdkPixbufLoader * loader; 63 GdkPixbufLoader * loader;
64 unsigned char * thumb; 64 unsigned char * thumb;
65 size_t ts; 65 size_t ts;
66 int col;
66 67
67 metamodel 68 metamodel
68 = gtk_list_store_new(META_NUM, 69 = gtk_list_store_new(META_NUM,
@@ -72,19 +73,25 @@ void createMetaDataListTreeView(GladeXML * xml,
72 metaList = glade_xml_get_widget(xml, 73 metaList = glade_xml_get_widget(xml,
73 name); 74 name);
74 renderer = gtk_cell_renderer_text_new(); 75 renderer = gtk_cell_renderer_text_new();
75 gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(metaList), 76 col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(metaList),
76 -1, 77 -1,
77 _("Category"), 78 _("Category"),
78 renderer, 79 renderer,
79 "text", META_STYPE, 80 "text", META_STYPE,
80 NULL); 81 NULL);
82 gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(metaList),
83 col - 1),
84 TRUE);
81 renderer = gtk_cell_renderer_text_new(); 85 renderer = gtk_cell_renderer_text_new();
82 gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(metaList), 86 col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(metaList),
83 -1, 87 -1,
84 _("Value"), 88 _("Value"),
85 renderer, 89 renderer,
86 "text", META_VALUE, 90 "text", META_VALUE,
87 NULL); 91 NULL);
92 gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(metaList),
93 col - 1),
94 TRUE);
88 gtk_tree_view_set_model(GTK_TREE_VIEW(metaList), 95 gtk_tree_view_set_model(GTK_TREE_VIEW(metaList),
89 GTK_TREE_MODEL(metamodel)); 96 GTK_TREE_MODEL(metamodel));
90 if (init != NULL) 97 if (init != NULL)