diff options
Diffstat (limited to 'src/plugins/fs/namespace.c')
-rw-r--r-- | src/plugins/fs/namespace.c | 57 |
1 files changed, 46 insertions, 11 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c index a592ea1e..b8127d98 100644 --- a/src/plugins/fs/namespace.c +++ b/src/plugins/fs/namespace.c | |||
@@ -60,6 +60,7 @@ static GtkWidget * makeNamespaceFrame(GtkWidget ** treeview, | |||
60 | GtkCellRenderer * renderer; | 60 | GtkCellRenderer * renderer; |
61 | GtkListStore * model; | 61 | GtkListStore * model; |
62 | GladeXML * namespaceXML; | 62 | GladeXML * namespaceXML; |
63 | int col; | ||
63 | 64 | ||
64 | namespaceXML | 65 | namespaceXML |
65 | = glade_xml_new(getGladeFileName(), | 66 | = glade_xml_new(getGladeFileName(), |
@@ -89,61 +90,85 @@ static GtkWidget * makeNamespaceFrame(GtkWidget ** treeview, | |||
89 | gtk_tree_view_set_model(GTK_TREE_VIEW(resultList), | 90 | gtk_tree_view_set_model(GTK_TREE_VIEW(resultList), |
90 | GTK_TREE_MODEL(model)); | 91 | GTK_TREE_MODEL(model)); |
91 | renderer = gtk_cell_renderer_text_new(); | 92 | renderer = gtk_cell_renderer_text_new(); |
92 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), | 93 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), |
93 | -1, | 94 | -1, |
94 | _("Filename"), | 95 | _("Filename"), |
95 | renderer, | 96 | renderer, |
96 | "text", IN_NAMESPACE_FILENAME, | 97 | "text", IN_NAMESPACE_FILENAME, |
97 | NULL); | 98 | NULL); |
99 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList), | ||
100 | col - 1), | ||
101 | TRUE); | ||
98 | renderer = gtk_cell_renderer_text_new(); | 102 | renderer = gtk_cell_renderer_text_new(); |
99 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), | 103 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), |
100 | -1, | 104 | -1, |
101 | _("Filesize"), | 105 | _("Filesize"), |
102 | renderer, | 106 | renderer, |
103 | "text", IN_NAMESPACE_SIZE, | 107 | "text", IN_NAMESPACE_SIZE, |
104 | NULL); | 108 | NULL); |
109 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList), | ||
110 | col - 1), | ||
111 | TRUE); | ||
105 | renderer = gtk_cell_renderer_text_new(); | 112 | renderer = gtk_cell_renderer_text_new(); |
106 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), | 113 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), |
107 | -1, | 114 | -1, |
108 | _("Description"), | 115 | _("Description"), |
109 | renderer, | 116 | renderer, |
110 | "text", IN_NAMESPACE_DESCRIPTION, | 117 | "text", IN_NAMESPACE_DESCRIPTION, |
111 | NULL); | 118 | NULL); |
119 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList), | ||
120 | col - 1), | ||
121 | TRUE); | ||
112 | renderer = gtk_cell_renderer_text_new(); | 122 | renderer = gtk_cell_renderer_text_new(); |
113 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), | 123 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), |
114 | -1, | 124 | -1, |
115 | _("Mime-type"), | 125 | _("Mime-type"), |
116 | renderer, | 126 | renderer, |
117 | "text", IN_NAMESPACE_MIMETYPE, | 127 | "text", IN_NAMESPACE_MIMETYPE, |
118 | NULL); | 128 | NULL); |
129 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList), | ||
130 | col - 1), | ||
131 | TRUE); | ||
119 | renderer = gtk_cell_renderer_text_new(); | 132 | renderer = gtk_cell_renderer_text_new(); |
120 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), | 133 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), |
121 | -1, | 134 | -1, |
122 | _("Publication Frequency"), | 135 | _("Publication Frequency"), |
123 | renderer, | 136 | renderer, |
124 | "text", IN_NAMESPACE_PUB_FREQ_STRING, | 137 | "text", IN_NAMESPACE_PUB_FREQ_STRING, |
125 | NULL); | 138 | NULL); |
139 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList), | ||
140 | col - 1), | ||
141 | TRUE); | ||
126 | renderer = gtk_cell_renderer_text_new(); | 142 | renderer = gtk_cell_renderer_text_new(); |
127 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), | 143 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), |
128 | -1, | 144 | -1, |
129 | _("Next Publication Date"), | 145 | _("Next Publication Date"), |
130 | renderer, | 146 | renderer, |
131 | "text", IN_NAMESPACE_PUB_DATE_STRING, | 147 | "text", IN_NAMESPACE_PUB_DATE_STRING, |
132 | NULL); | 148 | NULL); |
149 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList), | ||
150 | col - 1), | ||
151 | TRUE); | ||
133 | renderer = gtk_cell_renderer_text_new(); | 152 | renderer = gtk_cell_renderer_text_new(); |
134 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), | 153 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), |
135 | -1, | 154 | -1, |
136 | _("Last ID"), | 155 | _("Last ID"), |
137 | renderer, | 156 | renderer, |
138 | "text", IN_NAMESPACE_LAST_STRING, | 157 | "text", IN_NAMESPACE_LAST_STRING, |
139 | NULL); | 158 | NULL); |
159 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList), | ||
160 | col - 1), | ||
161 | TRUE); | ||
140 | renderer = gtk_cell_renderer_text_new(); | 162 | renderer = gtk_cell_renderer_text_new(); |
141 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), | 163 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(resultList), |
142 | -1, | 164 | -1, |
143 | _("Next ID"), | 165 | _("Next ID"), |
144 | renderer, | 166 | renderer, |
145 | "text", IN_NAMESPACE_NEXT_STRING, | 167 | "text", IN_NAMESPACE_NEXT_STRING, |
146 | NULL); | 168 | NULL); |
169 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(resultList), | ||
170 | col - 1), | ||
171 | TRUE); | ||
147 | child = gtk_bin_get_child(GTK_BIN(window)); | 172 | child = gtk_bin_get_child(GTK_BIN(window)); |
148 | gtk_widget_ref(GTK_WIDGET(child)); | 173 | gtk_widget_ref(GTK_WIDGET(child)); |
149 | gtk_container_remove(GTK_CONTAINER(window), | 174 | gtk_container_remove(GTK_CONTAINER(window), |
@@ -1061,6 +1086,7 @@ void fs_namespace_start() { | |||
1061 | GtkListStore * model; | 1086 | GtkListStore * model; |
1062 | GtkCellRenderer * renderer; | 1087 | GtkCellRenderer * renderer; |
1063 | GtkWidget * trackCheckButton; | 1088 | GtkWidget * trackCheckButton; |
1089 | int col; | ||
1064 | 1090 | ||
1065 | trackCheckButton | 1091 | trackCheckButton |
1066 | = glade_xml_get_widget(getMainXML(), | 1092 | = glade_xml_get_widget(getMainXML(), |
@@ -1081,26 +1107,35 @@ void fs_namespace_start() { | |||
1081 | gtk_tree_view_set_model(GTK_TREE_VIEW(contentList), | 1107 | gtk_tree_view_set_model(GTK_TREE_VIEW(contentList), |
1082 | GTK_TREE_MODEL(model)); | 1108 | GTK_TREE_MODEL(model)); |
1083 | renderer = gtk_cell_renderer_text_new(); | 1109 | renderer = gtk_cell_renderer_text_new(); |
1084 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(contentList), | 1110 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(contentList), |
1085 | -1, | 1111 | -1, |
1086 | _("Filename"), | 1112 | _("Filename"), |
1087 | renderer, | 1113 | renderer, |
1088 | "text", NAMESPACE_FILENAME, | 1114 | "text", NAMESPACE_FILENAME, |
1089 | NULL); | 1115 | NULL); |
1116 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(contentList), | ||
1117 | col - 1), | ||
1118 | TRUE); | ||
1090 | renderer = gtk_cell_renderer_text_new(); | 1119 | renderer = gtk_cell_renderer_text_new(); |
1091 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(contentList), | 1120 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(contentList), |
1092 | -1, | 1121 | -1, |
1093 | _("Filesize"), | 1122 | _("Filesize"), |
1094 | renderer, | 1123 | renderer, |
1095 | "text", NAMESPACE_SIZE, | 1124 | "text", NAMESPACE_SIZE, |
1096 | NULL); | 1125 | NULL); |
1126 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(contentList), | ||
1127 | col - 1), | ||
1128 | TRUE); | ||
1097 | renderer = gtk_cell_renderer_text_new(); | 1129 | renderer = gtk_cell_renderer_text_new(); |
1098 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(contentList), | 1130 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(contentList), |
1099 | -1, | 1131 | -1, |
1100 | _("URI"), | 1132 | _("URI"), |
1101 | renderer, | 1133 | renderer, |
1102 | "text", NAMESPACE_URISTRING, | 1134 | "text", NAMESPACE_URISTRING, |
1103 | NULL); | 1135 | NULL); |
1136 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(contentList), | ||
1137 | col - 1), | ||
1138 | TRUE); | ||
1104 | addCronJob(&updateContentList, | 1139 | addCronJob(&updateContentList, |
1105 | 0, | 1140 | 0, |
1106 | UPDATE_CONTENT_LIST_FREQUENCY, | 1141 | UPDATE_CONTENT_LIST_FREQUENCY, |