aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/collection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/collection.c')
-rw-r--r--src/plugins/fs/collection.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/plugins/fs/collection.c b/src/plugins/fs/collection.c
index 93c0d74c..da25ddbc 100644
--- a/src/plugins/fs/collection.c
+++ b/src/plugins/fs/collection.c
@@ -37,14 +37,14 @@ static GladeXML * metaXML;
37void on_collectionDialogMetaDataAddButton_clicked(gpointer dummy, 37void on_collectionDialogMetaDataAddButton_clicked(gpointer dummy,
38 GtkWidget * uploadButton) { 38 GtkWidget * uploadButton) {
39 handleMetaDataListUpdate(metaXML, 39 handleMetaDataListUpdate(metaXML,
40 "collectionMetaDataTypeComboBox", 40 "collectionMetaDataTypeComboBox",
41 "collectionMetaDataValueEntry", 41 "collectionMetaDataValueEntry",
42 "collectionMetaDataTreeView"); 42 "collectionMetaDataTreeView");
43} 43}
44 44
45 45
46void createCollection_clicked(GtkWidget * dummy1, 46void createCollection_clicked(GtkWidget * dummy1,
47 GtkWidget * dummy2) { 47 GtkWidget * dummy2) {
48 const char * collectionName; 48 const char * collectionName;
49 const char * updateIntervalString; 49 const char * updateIntervalString;
50 GtkWidget * w; 50 GtkWidget * w;
@@ -76,7 +76,7 @@ void createCollection_clicked(GtkWidget * dummy1,
76 "collectionUpdateIntervalComboBoxEntry"); 76 "collectionUpdateIntervalComboBoxEntry");
77 nameLine 77 nameLine
78 = gtk_bin_get_child(GTK_BIN(nameLine)); 78 = gtk_bin_get_child(GTK_BIN(nameLine));
79 updateIntervalString 79 updateIntervalString
80 = gtk_entry_get_text(GTK_ENTRY(nameLine)); 80 = gtk_entry_get_text(GTK_ENTRY(nameLine));
81 if (0 == strcmp(_("--sporadic update--"), 81 if (0 == strcmp(_("--sporadic update--"),
82 updateIntervalString)) 82 updateIntervalString))
@@ -89,24 +89,24 @@ void createCollection_clicked(GtkWidget * dummy1,
89 gtk_widget_destroy(dialog); 89 gtk_widget_destroy(dialog);
90 UNREF(metaXML); 90 UNREF(metaXML);
91 metaXML = NULL; 91 metaXML = NULL;
92 dialog = gtk_message_dialog_new 92 dialog = gtk_message_dialog_new
93 (NULL, 93 (NULL,
94 GTK_DIALOG_MODAL, 94 GTK_DIALOG_MODAL,
95 GTK_MESSAGE_ERROR, 95 GTK_MESSAGE_ERROR,
96 GTK_BUTTONS_CLOSE, 96 GTK_BUTTONS_CLOSE,
97 _("Failed to parse given time interval!")); 97 _("Failed to parse given time interval!"));
98 gtk_dialog_run(GTK_DIALOG(dialog)); 98 gtk_dialog_run(GTK_DIALOG(dialog));
99 gtk_widget_destroy(dialog); 99 gtk_widget_destroy(dialog);
100 return; 100 return;
101 } 101 }
102 meta = getMetaDataFromList(metaXML, 102 meta = getMetaDataFromList(metaXML,
103 "collectionMetaDataTreeView", 103 "collectionMetaDataTreeView",
104 NULL); 104 NULL);
105 spin = glade_xml_get_widget(metaXML, 105 spin = glade_xml_get_widget(metaXML,
106 "collectionAnonymityLevel"); 106 "collectionAnonymityLevel");
107 nameLine = glade_xml_get_widget(metaXML, 107 nameLine = glade_xml_get_widget(metaXML,
108 "collectionIdentifierEntry"); 108 "collectionIdentifierEntry");
109 collectionName 109 collectionName
110 = gtk_entry_get_text(GTK_ENTRY(nameLine)); 110 = gtk_entry_get_text(GTK_ENTRY(nameLine));
111 root = NULL; 111 root = NULL;
112 if (OK == FSUI_startCollection(ctx, 112 if (OK == FSUI_startCollection(ctx,
@@ -123,8 +123,8 @@ void createCollection_clicked(GtkWidget * dummy1,
123 gtk_widget_set_sensitive(w, TRUE); 123 gtk_widget_set_sensitive(w, TRUE);
124 } else { 124 } else {
125 GtkWidget * dialog; 125 GtkWidget * dialog;
126 126
127 dialog = gtk_message_dialog_new 127 dialog = gtk_message_dialog_new
128 (NULL, 128 (NULL,
129 GTK_DIALOG_MODAL, 129 GTK_DIALOG_MODAL,
130 GTK_MESSAGE_ERROR, 130 GTK_MESSAGE_ERROR,
@@ -132,7 +132,7 @@ void createCollection_clicked(GtkWidget * dummy1,
132 _("Failed to start collection `%s' (consult logs)."), 132 _("Failed to start collection `%s' (consult logs)."),
133 collectionName); 133 collectionName);
134 gtk_dialog_run(GTK_DIALOG(dialog)); 134 gtk_dialog_run(GTK_DIALOG(dialog));
135 gtk_widget_destroy(dialog); 135 gtk_widget_destroy(dialog);
136 } 136 }
137 ECRS_freeMetaData(meta); 137 ECRS_freeMetaData(meta);
138 } 138 }
@@ -163,7 +163,7 @@ void deleteCollection_clicked(GtkWidget * dummy1,
163void fs_collection_start() { 163void fs_collection_start() {
164 GtkWidget * w; 164 GtkWidget * w;
165 165
166 if (NULL != FSUI_getCollection(ctx)) 166 if (NULL != FSUI_getCollection(ctx))
167 w = glade_xml_get_widget(getMainXML(), 167 w = glade_xml_get_widget(getMainXML(),
168 "createCollection"); 168 "createCollection");
169 else 169 else