diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/helper.c | 2 | ||||
-rw-r--r-- | src/plugins/fs/download.c | 12 | ||||
-rw-r--r-- | src/plugins/fs/namespace.c | 50 | ||||
-rw-r--r-- | src/plugins/fs/search.c | 22 | ||||
-rw-r--r-- | src/plugins/fs/upload.c | 20 |
5 files changed, 53 insertions, 53 deletions
diff --git a/src/common/helper.c b/src/common/helper.c index a176eecc..504e5abe 100644 --- a/src/common/helper.c +++ b/src/common/helper.c | |||
@@ -508,7 +508,7 @@ void run_with_save_calls(PThreadMain cb, | |||
508 | /* another thread will run the save calls */ | 508 | /* another thread will run the save calls */ |
509 | SEMAPHORE_DOWN(cls.sig, YES); | 509 | SEMAPHORE_DOWN(cls.sig, YES); |
510 | } else { | 510 | } else { |
511 | while (OK != SEMAPHORE_DOWN(cls.sig, NO)) { | 511 | while (SYSERR == SEMAPHORE_DOWN(cls.sig, NO)) { |
512 | MUTEX_LOCK(sclock); | 512 | MUTEX_LOCK(sclock); |
513 | if (pscCount > 0) { | 513 | if (pscCount > 0) { |
514 | i = weak_randomi(pscCount); | 514 | i = weak_randomi(pscCount); |
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c index 2e645738..dc7e2ae4 100644 --- a/src/plugins/fs/download.c +++ b/src/plugins/fs/download.c | |||
@@ -374,8 +374,8 @@ static void initiateDownload(GtkTreeModel * model, | |||
374 | DEBUG_END(); | 374 | DEBUG_END(); |
375 | } | 375 | } |
376 | 376 | ||
377 | void on_downloadButton_clicked(GtkWidget * treeview, | 377 | void on_downloadButton_clicked_fs(GtkWidget * treeview, |
378 | GtkWidget * downloadButton) { | 378 | GtkWidget * downloadButton) { |
379 | GtkTreeSelection * selection; | 379 | GtkTreeSelection * selection; |
380 | 380 | ||
381 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); | 381 | selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview)); |
@@ -386,8 +386,8 @@ void on_downloadButton_clicked(GtkWidget * treeview, | |||
386 | } | 386 | } |
387 | 387 | ||
388 | 388 | ||
389 | void on_statusDownloadURIEntry_editing_done(GtkWidget * entry, | 389 | void on_statusDownloadURIEntry_editing_done_fs(GtkWidget * entry, |
390 | GtkWidget * downloadButton) { | 390 | GtkWidget * downloadButton) { |
391 | InitiateDownloadCls idc; | 391 | InitiateDownloadCls idc; |
392 | const char * uris; | 392 | const char * uris; |
393 | char * urid; | 393 | char * urid; |
@@ -678,8 +678,8 @@ static void abortDownloadCallback(GtkTreeModel * model, | |||
678 | ECRS_freeUri(u); | 678 | ECRS_freeUri(u); |
679 | } | 679 | } |
680 | 680 | ||
681 | void on_abortDownloadButton_clicked(void * unused, | 681 | void on_abortDownloadButton_clicked_fs(void * unused, |
682 | GtkWidget * clearButton) { | 682 | GtkWidget * clearButton) { |
683 | GtkTreeSelection * selection; | 683 | GtkTreeSelection * selection; |
684 | GtkWidget * downloadList; | 684 | GtkWidget * downloadList; |
685 | 685 | ||
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c index 4a3041e5..3cbdd65d 100644 --- a/src/plugins/fs/namespace.c +++ b/src/plugins/fs/namespace.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | (C) 2005 Christian Grothoff (and other contributing authors) | 3 | (C) 2005, 2006 Christian Grothoff (and other contributing authors) |
4 | 4 | ||
5 | GNUnet is free software; you can redistribute it and/or modify | 5 | GNUnet is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published | 6 | it under the terms of the GNU General Public License as published |
@@ -372,8 +372,8 @@ static void updateContentList(void * unused) { | |||
372 | gtkSaveCall(&doUpdateContentList, NULL); | 372 | gtkSaveCall(&doUpdateContentList, NULL); |
373 | } | 373 | } |
374 | 374 | ||
375 | void on_refreshContentListButton_clicked(gpointer dummy, | 375 | void on_refreshContentListButton_clickedfs_(gpointer dummy, |
376 | gpointer dummy1) { | 376 | gpointer dummy1) { |
377 | updateContentList(NULL); | 377 | updateContentList(NULL); |
378 | } | 378 | } |
379 | 379 | ||
@@ -538,23 +538,23 @@ static int addTabForNamespace(void * unused, | |||
538 | return OK; | 538 | return OK; |
539 | } | 539 | } |
540 | 540 | ||
541 | void on_namespacemetaDataDialogKeywordAddButton_clicked(gpointer dummy, | 541 | void on_namespacemetaDataDialogKeywordAddButton_clicked_fs(gpointer dummy, |
542 | GtkWidget * uploadButton) { | 542 | GtkWidget * uploadButton) { |
543 | handleKeywordListUpdate(metaXML, | 543 | handleKeywordListUpdate(metaXML, |
544 | "namespaceKeywordEntry", | 544 | "namespaceKeywordEntry", |
545 | "namespaceMetaDataDialogKeywordList"); | 545 | "namespaceMetaDataDialogKeywordList"); |
546 | } | 546 | } |
547 | 547 | ||
548 | void on_namespacemetaDataDialogMetaDataAddButton_clicked(gpointer dummy, | 548 | void on_namespacemetaDataDialogMetaDataAddButton_clicked_fs(gpointer dummy, |
549 | GtkWidget * uploadButton) { | 549 | GtkWidget * uploadButton) { |
550 | handleMetaDataListUpdate(metaXML, | 550 | handleMetaDataListUpdate(metaXML, |
551 | "namespaceMetaDataDialogMetaTypeComboBox", | 551 | "namespaceMetaDataDialogMetaTypeComboBox", |
552 | "namespaceMetaDataValueEntry", | 552 | "namespaceMetaDataValueEntry", |
553 | "namespaceMetaDataDialogMetaDataList"); | 553 | "namespaceMetaDataDialogMetaDataList"); |
554 | } | 554 | } |
555 | 555 | ||
556 | void create_namespace_clicked(GtkWidget * dummy1, | 556 | void create_namespace_clicked_fs(GtkWidget * dummy1, |
557 | GtkWidget * dummy2) { | 557 | GtkWidget * dummy2) { |
558 | const char * namespaceName; | 558 | const char * namespaceName; |
559 | GtkWidget * nameLine; | 559 | GtkWidget * nameLine; |
560 | GtkWidget * dialog; | 560 | GtkWidget * dialog; |
@@ -649,8 +649,8 @@ void create_namespace_clicked(GtkWidget * dummy1, | |||
649 | DEBUG_END(); | 649 | DEBUG_END(); |
650 | } | 650 | } |
651 | 651 | ||
652 | void namespaceDelete_clicked(GtkWidget * dummy1, | 652 | void namespaceDelete_clicked_fs(GtkWidget * dummy1, |
653 | GtkWidget * dummy2) { | 653 | GtkWidget * dummy2) { |
654 | GtkWidget * notebook; | 654 | GtkWidget * notebook; |
655 | NamespaceList * list; | 655 | NamespaceList * list; |
656 | NamespaceList * prev; | 656 | NamespaceList * prev; |
@@ -807,16 +807,16 @@ static void initiateUpload(GtkTreeModel * model, | |||
807 | DEBUG_END(); | 807 | DEBUG_END(); |
808 | } | 808 | } |
809 | 809 | ||
810 | void on_namespaceInsertMetaDataDialogMetaDataAddButton_clicked(GtkWidget * dummy1, | 810 | void on_namespaceInsertMetaDataDialogMetaDataAddButton_clicked_fs(GtkWidget * dummy1, |
811 | GtkWidget * dummy2) { | 811 | GtkWidget * dummy2) { |
812 | handleMetaDataListUpdate(metaXML, | 812 | handleMetaDataListUpdate(metaXML, |
813 | "namespaceInsertMetaTypeComboBox", | 813 | "namespaceInsertMetaTypeComboBox", |
814 | "metaDataValueEntry", | 814 | "metaDataValueEntry", |
815 | "metaDataTreeView"); | 815 | "metaDataTreeView"); |
816 | } | 816 | } |
817 | 817 | ||
818 | void on_namespaceInsertButton_clicked(GtkWidget * dummy1, | 818 | void on_namespaceInsertButton_clicked_fs(GtkWidget * dummy1, |
819 | GtkWidget * dummy2) { | 819 | GtkWidget * dummy2) { |
820 | const char * identifierName; | 820 | const char * identifierName; |
821 | NamespaceList * list; | 821 | NamespaceList * list; |
822 | GtkWidget * nameLine; | 822 | GtkWidget * nameLine; |
@@ -953,8 +953,8 @@ void on_namespaceInsertButton_clicked(GtkWidget * dummy1, | |||
953 | DEBUG_END(); | 953 | DEBUG_END(); |
954 | } | 954 | } |
955 | 955 | ||
956 | void on_namespaceUpdateButton_clicked(GtkWidget * dummy1, | 956 | void on_namespaceUpdateButton_clicked_fs(GtkWidget * dummy1, |
957 | GtkWidget * dummy2) { | 957 | GtkWidget * dummy2) { |
958 | const char * identifierName; | 958 | const char * identifierName; |
959 | NamespaceList * list; | 959 | NamespaceList * list; |
960 | GtkWidget * nameLine; | 960 | GtkWidget * nameLine; |
@@ -1177,8 +1177,8 @@ void on_namespaceUpdateButton_clicked(GtkWidget * dummy1, | |||
1177 | DEBUG_END(); | 1177 | DEBUG_END(); |
1178 | } | 1178 | } |
1179 | 1179 | ||
1180 | void on_clearAvailableContentButton_clicked(GtkWidget * dummy1, | 1180 | void on_clearAvailableContentButton_clicked_fs(GtkWidget * dummy1, |
1181 | GtkWidget * dummy2) { | 1181 | GtkWidget * dummy2) { |
1182 | GtkWidget * contentList; | 1182 | GtkWidget * contentList; |
1183 | GtkTreeModel * model; | 1183 | GtkTreeModel * model; |
1184 | 1184 | ||
@@ -1195,8 +1195,8 @@ void on_clearAvailableContentButton_clicked(GtkWidget * dummy1, | |||
1195 | DEBUG_END(); | 1195 | DEBUG_END(); |
1196 | } | 1196 | } |
1197 | 1197 | ||
1198 | void on_trackingCheckButton_toggled(GtkWidget * dummy1, | 1198 | void on_trackingCheckButton_toggled_fs(GtkWidget * dummy1, |
1199 | GtkWidget * dummy2) { | 1199 | GtkWidget * dummy2) { |
1200 | GtkWidget * trackCheckButton; | 1200 | GtkWidget * trackCheckButton; |
1201 | 1201 | ||
1202 | trackCheckButton | 1202 | trackCheckButton |
@@ -1307,8 +1307,8 @@ void fs_namespace_start(struct GE_Context * e, | |||
1307 | } | 1307 | } |
1308 | 1308 | ||
1309 | #if 0 | 1309 | #if 0 |
1310 | void on_availableContentList_destroy(GtkWidget * dummy1, | 1310 | void on_availableContentList_destroy_fs(GtkWidget * dummy1, |
1311 | GtkWidget * dummy2) { | 1311 | GtkWidget * dummy2) { |
1312 | GtkWidget * contentList; | 1312 | GtkWidget * contentList; |
1313 | GtkTreeModel * model; | 1313 | GtkTreeModel * model; |
1314 | 1314 | ||
@@ -1323,8 +1323,8 @@ void on_availableContentList_destroy(GtkWidget * dummy1, | |||
1323 | clearContentList(model); | 1323 | clearContentList(model); |
1324 | } | 1324 | } |
1325 | 1325 | ||
1326 | void on_localNamespacesNotebook_destroy(GtkWidget * dummy1, | 1326 | void on_localNamespacesNotebook_destroy_fs(GtkWidget * dummy1, |
1327 | GtkWidget * dummy2) { | 1327 | GtkWidget * dummy2) { |
1328 | NamespaceList * pos; | 1328 | NamespaceList * pos; |
1329 | GtkTreeIter iter; | 1329 | GtkTreeIter iter; |
1330 | struct ECRS_URI * u; | 1330 | struct ECRS_URI * u; |
diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index 369eff46..750e7432 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c | |||
@@ -213,8 +213,8 @@ static void freeIterSubtree(GtkTreeModel * tree, | |||
213 | * The spin button giving the rating for a particular namespace | 213 | * The spin button giving the rating for a particular namespace |
214 | * has been changed. Store the new rating for the namespace. | 214 | * has been changed. Store the new rating for the namespace. |
215 | */ | 215 | */ |
216 | void on_namespaceRatingSpinButton_changed(GtkWidget * dummy, | 216 | void on_namespaceRatingSpinButton_changed_fs(GtkWidget * dummy, |
217 | GtkWidget * dummy2) { | 217 | GtkWidget * dummy2) { |
218 | GtkWidget * spin; | 218 | GtkWidget * spin; |
219 | GtkWidget * ncbe; | 219 | GtkWidget * ncbe; |
220 | GtkTreeModel * model; | 220 | GtkTreeModel * model; |
@@ -281,8 +281,8 @@ void on_namespaceRatingSpinButton_changed(GtkWidget * dummy, | |||
281 | * Update the trust level (possibly changing sensitivity) | 281 | * Update the trust level (possibly changing sensitivity) |
282 | * and set the search string to the root (if available). | 282 | * and set the search string to the root (if available). |
283 | */ | 283 | */ |
284 | void on_searchNamespaceComboBoxEntry_changed(GtkWidget * dummy, | 284 | void on_searchNamespaceComboBoxEntry_changed_fs(GtkWidget * dummy, |
285 | GtkWidget * dummy2) { | 285 | GtkWidget * dummy2) { |
286 | GtkWidget * keyword; | 286 | GtkWidget * keyword; |
287 | GtkWidget * spin; | 287 | GtkWidget * spin; |
288 | GtkWidget * ncbe; | 288 | GtkWidget * ncbe; |
@@ -349,8 +349,8 @@ void on_searchNamespaceComboBoxEntry_changed(GtkWidget * dummy, | |||
349 | DEBUG_END(); | 349 | DEBUG_END(); |
350 | } | 350 | } |
351 | 351 | ||
352 | void on_searchResults_destroy(GtkWidget * dummy, | 352 | void on_searchResults_destroy_fs(GtkWidget * dummy, |
353 | GtkWidget * treeview) { | 353 | GtkWidget * treeview) { |
354 | GtkTreeStore * tree; | 354 | GtkTreeStore * tree; |
355 | GtkTreeIter iter; | 355 | GtkTreeIter iter; |
356 | 356 | ||
@@ -573,8 +573,8 @@ static void closeSearchPage(SearchList * list) { | |||
573 | GE_BREAK(ectx, 0); | 573 | GE_BREAK(ectx, 0); |
574 | } | 574 | } |
575 | 575 | ||
576 | void on_closeSearchButton_clicked(GtkWidget * searchPage, | 576 | void on_closeSearchButton_clicked_fs(GtkWidget * searchPage, |
577 | GtkWidget * closeButton) { | 577 | GtkWidget * closeButton) { |
578 | SearchList * list; | 578 | SearchList * list; |
579 | SearchList * prev; | 579 | SearchList * prev; |
580 | 580 | ||
@@ -744,8 +744,8 @@ static void * startSearch(void * cls) { | |||
744 | return NULL; | 744 | return NULL; |
745 | } | 745 | } |
746 | 746 | ||
747 | void on_fssearchbutton_clicked(gpointer dummy2, | 747 | void on_fssearchbutton_clicked_fs(gpointer dummy2, |
748 | GtkWidget * searchButton) { | 748 | GtkWidget * searchButton) { |
749 | GtkWidget * searchKeywordGtkCB; | 749 | GtkWidget * searchKeywordGtkCB; |
750 | GtkWidget * searchNamespaceGtkCB; | 750 | GtkWidget * searchNamespaceGtkCB; |
751 | GtkWidget * notebook; | 751 | GtkWidget * notebook; |
@@ -1290,7 +1290,7 @@ GtkWidget *buildSearchTabLabel(GtkWidget *searchPage, | |||
1290 | 1290 | ||
1291 | g_signal_connect_swapped(close_button, | 1291 | g_signal_connect_swapped(close_button, |
1292 | "clicked", | 1292 | "clicked", |
1293 | G_CALLBACK (on_closeSearchButton_clicked), | 1293 | G_CALLBACK (on_closeSearchButton_clicked_fs), |
1294 | searchPage); | 1294 | searchPage); |
1295 | 1295 | ||
1296 | /* truncate the description if needed */ | 1296 | /* truncate the description if needed */ |
diff --git a/src/plugins/fs/upload.c b/src/plugins/fs/upload.c index 6cf8b153..9ef79e80 100644 --- a/src/plugins/fs/upload.c +++ b/src/plugins/fs/upload.c | |||
@@ -88,8 +88,8 @@ void displayUploadComplete(struct FSUI_UploadList * list, | |||
88 | } | 88 | } |
89 | 89 | ||
90 | 90 | ||
91 | void on_selectAlternativePreviewButton_selection_changed(GtkWidget * preview, | 91 | void on_selectAlternativePreviewButton_selection_changed_fs(GtkWidget * preview, |
92 | GtkWidget * fileChooser) { | 92 | GtkWidget * fileChooser) { |
93 | char * fn; | 93 | char * fn; |
94 | 94 | ||
95 | fn = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fileChooser)); | 95 | fn = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(fileChooser)); |
@@ -108,15 +108,15 @@ void on_selectAlternativePreviewButton_selection_changed(GtkWidget * preview, | |||
108 | } | 108 | } |
109 | } | 109 | } |
110 | 110 | ||
111 | void on_metaDataDialogKeywordAddButton_clicked(gpointer dummy, | 111 | void on_metaDataDialogKeywordAddButton_clicked_fs(gpointer dummy, |
112 | GtkWidget * uploadButton) { | 112 | GtkWidget * uploadButton) { |
113 | handleKeywordListUpdate(metaXML, | 113 | handleKeywordListUpdate(metaXML, |
114 | "fileInformationKeywordEntry", | 114 | "fileInformationKeywordEntry", |
115 | "metaDataDialogKeywordList"); | 115 | "metaDataDialogKeywordList"); |
116 | } | 116 | } |
117 | 117 | ||
118 | void on_metaDataDialogMetaDataAddButton_clicked(gpointer dummy, | 118 | void on_metaDataDialogMetaDataAddButton_clicked_fs(gpointer dummy, |
119 | GtkWidget * uploadButton) { | 119 | GtkWidget * uploadButton) { |
120 | handleMetaDataListUpdate(metaXML, | 120 | handleMetaDataListUpdate(metaXML, |
121 | "metaDataDialogMetaTypeComboBox", | 121 | "metaDataDialogMetaTypeComboBox", |
122 | "metaDataDialogValueEntry", | 122 | "metaDataDialogValueEntry", |
@@ -153,8 +153,8 @@ static void * doUpload(void * cls) { | |||
153 | return NULL; | 153 | return NULL; |
154 | } | 154 | } |
155 | 155 | ||
156 | void on_fsinsertuploadbutton_clicked(gpointer dummy, | 156 | void on_fsinsertuploadbutton_clicked_fs(gpointer dummy, |
157 | GtkWidget * uploadButton) { | 157 | GtkWidget * uploadButton) { |
158 | UploadClosure uc; | 158 | UploadClosure uc; |
159 | const char * filenamerest; | 159 | const char * filenamerest; |
160 | GtkWidget * uploadLine; | 160 | GtkWidget * uploadLine; |
@@ -314,8 +314,8 @@ static char * selectFile(const char *oldfilename) { | |||
314 | #endif /* MINGW */ | 314 | #endif /* MINGW */ |
315 | } | 315 | } |
316 | 316 | ||
317 | void on_mainFileSharingInsertBrowseButton_clicked(GtkWidget * browseButton, | 317 | void on_mainFileSharingInsertBrowseButton_clicked_fs(GtkWidget * browseButton, |
318 | gpointer dummy) { | 318 | gpointer dummy) { |
319 | char * filename; | 319 | char * filename; |
320 | const char *oldfilename; | 320 | const char *oldfilename; |
321 | GtkWidget * uploadLine; | 321 | GtkWidget * uploadLine; |