aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_publish-edit-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_publish-edit-dialog.c')
-rw-r--r--src/fs/gnunet-fs-gtk_publish-edit-dialog.c100
1 files changed, 50 insertions, 50 deletions
diff --git a/src/fs/gnunet-fs-gtk_publish-edit-dialog.c b/src/fs/gnunet-fs-gtk_publish-edit-dialog.c
index 71260209..196726a1 100644
--- a/src/fs/gnunet-fs-gtk_publish-edit-dialog.c
+++ b/src/fs/gnunet-fs-gtk_publish-edit-dialog.c
@@ -300,26 +300,26 @@ change_metatypes (struct EditPublicationDialogContext *ctx, gint code)
300 /* double-check that 'code' is valid */ 300 /* double-check that 'code' is valid */
301 for (pubtype_count = 0; NULL != types[pubtype_count]; pubtype_count++) ; 301 for (pubtype_count = 0; NULL != types[pubtype_count]; pubtype_count++) ;
302 GNUNET_assert (code < pubtype_count); 302 GNUNET_assert (code < pubtype_count);
303 303
304 /* clear existing selection of metatypes */ 304 /* clear existing selection of metatypes */
305 gtk_list_store_clear (ctx->metatypes_liststore); 305 gtk_list_store_clear (ctx->metatypes_liststore);
306 max_type = EXTRACTOR_metatype_get_max (); 306 max_type = EXTRACTOR_metatype_get_max ();
307 /* add new types based on selection */ 307 /* add new types based on selection */
308 for (i = 0; types[code][i] != EXTRACTOR_METATYPE_RESERVED; i++) 308 for (i = 0; types[code][i] != EXTRACTOR_METATYPE_RESERVED; i++)
309 if ( (types[code][i] < max_type) && (types[code][i] > 0) ) 309 if ( (types[code][i] < max_type) && (types[code][i] > 0) )
310 gtk_list_store_insert_with_values (ctx->metatypes_liststore, 310 gtk_list_store_insert_with_values (ctx->metatypes_liststore,
311 &iter, G_MAXINT, 311 &iter, G_MAXINT,
312 PUBLISH_METADATA_TYPES_MC_TYPE, 312 PUBLISH_METADATA_TYPES_MC_TYPE,
313 types[code][i], 313 types[code][i],
314 PUBLISH_METADATA_TYPES_MC_FORMAT, 314 PUBLISH_METADATA_TYPES_MC_FORMAT,
315 EXTRACTOR_METAFORMAT_UTF8, 315 EXTRACTOR_METAFORMAT_UTF8,
316 PUBLISH_METADATA_TYPES_MC_TYPE_NAME, 316 PUBLISH_METADATA_TYPES_MC_TYPE_NAME,
317 EXTRACTOR_metatype_to_string 317 EXTRACTOR_metatype_to_string
318 (types [code][i]), 318 (types [code][i]),
319 PUBLISH_METADATA_TYPES_MC_DESCRIPTION, 319 PUBLISH_METADATA_TYPES_MC_DESCRIPTION,
320 EXTRACTOR_metatype_to_description 320 EXTRACTOR_metatype_to_description
321 (types[code][i]), 321 (types[code][i]),
322 -1); 322 -1);
323} 323}
324 324
325 325
@@ -361,7 +361,7 @@ metadata_selection_changed_cb (GtkTreeSelection *ts,
361 struct EditPublicationDialogContext *ctx = user_data; 361 struct EditPublicationDialogContext *ctx = user_data;
362 362
363 gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object 363 gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object
364 (ctx->builder, 364 (ctx->builder,
365 "GNUNET_GTK_edit_publication_delete_button")), 365 "GNUNET_GTK_edit_publication_delete_button")),
366 gtk_tree_selection_get_selected (ts, NULL, NULL)); 366 gtk_tree_selection_get_selected (ts, NULL, NULL));
367} 367}
@@ -377,9 +377,9 @@ metadata_selection_changed_cb (GtkTreeSelection *ts,
377 * @param new_text new value for the item 377 * @param new_text new value for the item
378 * @param user_data the 'struct EditPublicationDialogContext' 378 * @param user_data the 'struct EditPublicationDialogContext'
379 */ 379 */
380void 380void
381GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer_edited_cb (GtkCellRendererText *renderer, 381GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer_edited_cb (GtkCellRendererText *renderer,
382 gchar * path, 382 gchar * path,
383 gchar * new_text, 383 gchar * new_text,
384 gpointer user_data) 384 gpointer user_data)
385{ 385{
@@ -387,8 +387,8 @@ GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer_edited_cb (GtkCellR
387 GtkTreeIter iter; 387 GtkTreeIter iter;
388 gint type_id; 388 gint type_id;
389 389
390 if (! gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (ctx->meta_liststore), 390 if (! gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (ctx->meta_liststore),
391 &iter, 391 &iter,
392 path)) 392 path))
393 { 393 {
394 GNUNET_break (0); 394 GNUNET_break (0);
@@ -421,10 +421,10 @@ GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer_edited_cb (GtkCellR
421 * @param combo combo box that was dropped down 421 * @param combo combo box that was dropped down
422 * @param path_string which item was changed in the tree view 422 * @param path_string which item was changed in the tree view
423 * @param new_iter item that is now selected in the drop-down combo box 423 * @param new_iter item that is now selected in the drop-down combo box
424 * @param user_data the 'struct EditPublicationDialogContext' 424 * @param user_data the 'struct EditPublicationDialogContext'
425 */ 425 */
426void 426void
427GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer_changed_cb (GtkCellRendererCombo * combo, 427GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer_changed_cb (GtkCellRendererCombo * combo,
428 gchar * path_string, 428 gchar * path_string,
429 GtkTreeIter * new_iter, 429 GtkTreeIter * new_iter,
430 gpointer user_data) 430 gpointer user_data)
@@ -452,7 +452,7 @@ GNUNET_GTK_edit_publication_metadata_tree_view_type_renderer_changed_cb (GtkCell
452 * @param new_text new value for the item 452 * @param new_text new value for the item
453 * @param user_data the 'struct EditPublicationDialogContext' 453 * @param user_data the 'struct EditPublicationDialogContext'
454 */ 454 */
455void 455void
456GNUNET_GTK_edit_publication_metadata_tree_view_value_renderer_edited_cb (GtkCellRendererText * renderer, 456GNUNET_GTK_edit_publication_metadata_tree_view_value_renderer_edited_cb (GtkCellRendererText * renderer,
457 gchar * path, 457 gchar * path,
458 gchar * new_text, 458 gchar * new_text,
@@ -467,16 +467,16 @@ GNUNET_GTK_edit_publication_metadata_tree_view_value_renderer_edited_cb (GtkCell
467 char *pos; 467 char *pos;
468 468
469 if (! gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (ctx->meta_liststore), 469 if (! gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (ctx->meta_liststore),
470 &iter, 470 &iter,
471 path)) 471 path))
472 { 472 {
473 GNUNET_break (0); 473 GNUNET_break (0);
474 return; 474 return;
475 } 475 }
476 476
477 gtk_tree_model_get (GTK_TREE_MODEL (ctx->meta_liststore), &iter, 477 gtk_tree_model_get (GTK_TREE_MODEL (ctx->meta_liststore), &iter,
478 PUBLISH_METADATA_MC_TYPE, &metatype, -1); 478 PUBLISH_METADATA_MC_TYPE, &metatype, -1);
479 if (metatype == EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME) 479 if (metatype == EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME)
480 { 480 {
481 /* apply filename rules */ 481 /* apply filename rules */
482 /* First, use UNIX-style separators */ 482 /* First, use UNIX-style separators */
@@ -493,16 +493,16 @@ GNUNET_GTK_edit_publication_metadata_tree_view_value_renderer_edited_cb (GtkCell
493 } 493 }
494 494
495 /* However, directories must end with '/', so add it */ 495 /* However, directories must end with '/', so add it */
496 if ( (new_text[strlen (new_text) - 1] != '/') && 496 if ( (new_text[strlen (new_text) - 1] != '/') &&
497 ctx->is_directory == GNUNET_YES) 497 ctx->is_directory == GNUNET_YES)
498 { 498 {
499 char * tmp; 499 char * tmp;
500 500
501 GNUNET_asprintf (&tmp, "%s/", avalue); 501 GNUNET_asprintf (&tmp, "%s/", avalue);
502 GNUNET_free (avalue); 502 GNUNET_free (avalue);
503 avalue = tmp; 503 avalue = tmp;
504 } 504 }
505 505
506 /* Also, replace '../' everywhere with "___" */ 506 /* Also, replace '../' everywhere with "___" */
507 while (NULL != (pos = strstr (avalue, "../"))) 507 while (NULL != (pos = strstr (avalue, "../")))
508 memset (pos, '_', 3); 508 memset (pos, '_', 3);
@@ -514,8 +514,8 @@ GNUNET_GTK_edit_publication_metadata_tree_view_value_renderer_edited_cb (GtkCell
514 ivalue = new_text; 514 ivalue = new_text;
515 avalue = NULL; 515 avalue = NULL;
516 } 516 }
517 gtk_list_store_set (ctx->meta_liststore, &iter, 517 gtk_list_store_set (ctx->meta_liststore, &iter,
518 PUBLISH_METADATA_MC_VALUE, ivalue, 518 PUBLISH_METADATA_MC_VALUE, ivalue,
519 -1); 519 -1);
520 GNUNET_free_non_null (avalue); 520 GNUNET_free_non_null (avalue);
521} 521}
@@ -583,7 +583,7 @@ GNUNET_GTK_edit_publication_delete_button_clicked_cb (GtkButton * button,
583 * @param user_data the 'struct EditPublicationDialogContext' 583 * @param user_data the 'struct EditPublicationDialogContext'
584 */ 584 */
585void 585void
586GNUNET_GTK_edit_publication_metadata_preview_file_chooser_button_file_set_cb (GtkFileChooserButton * widget, 586GNUNET_GTK_edit_publication_metadata_preview_file_chooser_button_file_set_cb (GtkFileChooserButton * widget,
587 gpointer user_data) 587 gpointer user_data)
588{ 588{
589 struct EditPublicationDialogContext *ctx = user_data; 589 struct EditPublicationDialogContext *ctx = user_data;
@@ -637,14 +637,14 @@ GNUNET_GTK_edit_publication_keyword_entry_changed_cb (GtkEditable * editable,
637 637
638 keyword = gtk_entry_get_text (ctx->keyword_entry); 638 keyword = gtk_entry_get_text (ctx->keyword_entry);
639 gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (ctx->builder, 639 gtk_widget_set_sensitive (GTK_WIDGET (gtk_builder_get_object (ctx->builder,
640 "GNUNET_GTK_edit_publication_keyword_list_add_button")), 640 "GNUNET_GTK_edit_publication_keyword_list_add_button")),
641 (strlen (keyword) > 0) ? TRUE : FALSE); 641 (strlen (keyword) > 0) ? TRUE : FALSE);
642} 642}
643 643
644 644
645/** 645/**
646 * Update the sensitivity of the 'confirm' button based on 646 * Update the sensitivity of the 'confirm' button based on
647 * the availability of keywords and whether they are required or 647 * the availability of keywords and whether they are required or
648 * not. 648 * not.
649 * 649 *
650 * @param ctx the 'struct EditPublicationDialogContext' 650 * @param ctx the 'struct EditPublicationDialogContext'
@@ -654,7 +654,7 @@ update_confirm_sensitivity (struct EditPublicationDialogContext *ctx)
654{ 654{
655 GtkTreeIter iter; 655 GtkTreeIter iter;
656 656
657 if ( (! ctx->allow_no_keywords) && 657 if ( (! ctx->allow_no_keywords) &&
658 (! gtk_tree_model_get_iter_first (GTK_TREE_MODEL (ctx->keywords_liststore), 658 (! gtk_tree_model_get_iter_first (GTK_TREE_MODEL (ctx->keywords_liststore),
659 &iter)) ) 659 &iter)) )
660 gtk_widget_set_sensitive (ctx->confirm_button, FALSE); 660 gtk_widget_set_sensitive (ctx->confirm_button, FALSE);
@@ -674,7 +674,7 @@ void
674GNUNET_GTK_edit_publication_keyword_list_del_button_clicked_cb (GtkButton * 674GNUNET_GTK_edit_publication_keyword_list_del_button_clicked_cb (GtkButton *
675 button, 675 button,
676 gpointer user_data) 676 gpointer user_data)
677{ 677{
678 struct EditPublicationDialogContext *ctx = user_data; 678 struct EditPublicationDialogContext *ctx = user_data;
679 GtkTreeIter iter; 679 GtkTreeIter iter;
680 GtkTreeSelection *keywords_selection; 680 GtkTreeSelection *keywords_selection;
@@ -712,7 +712,7 @@ GNUNET_GTK_edit_publication_keyword_list_add_button_clicked_cb (GtkButton *
712 keyword = gtk_entry_get_text (ctx->keyword_entry); 712 keyword = gtk_entry_get_text (ctx->keyword_entry);
713 if (strlen (keyword) == 0) 713 if (strlen (keyword) == 0)
714 return; 714 return;
715 gtk_list_store_insert_with_values (ctx->keywords_liststore, 715 gtk_list_store_insert_with_values (ctx->keywords_liststore,
716 &iter, G_MAXINT, 716 &iter, G_MAXINT,
717 PUBLISH_TYPES_MC_KEYWORD, keyword, 717 PUBLISH_TYPES_MC_KEYWORD, keyword,
718 PUBLISH_TYPES_MC_ADDED, TRUE, 718 PUBLISH_TYPES_MC_ADDED, TRUE,
@@ -884,13 +884,13 @@ preserve_meta_items (void *cls, const char *plugin_name,
884 * used in the main libextractor library and yielding 884 * used in the main libextractor library and yielding
885 * meta data). 885 * meta data).
886 * @param type libextractor-type describing the meta data 886 * @param type libextractor-type describing the meta data
887 * @param format basic format information about data 887 * @param format basic format information about data
888 * @param data_mime_type mime-type of data (not of the original file); 888 * @param data_mime_type mime-type of data (not of the original file);
889 * can be NULL (if mime-type is not known) 889 * can be NULL (if mime-type is not known)
890 * @param data actual meta-data found 890 * @param data actual meta-data found
891 * @param data_len number of bytes in data 891 * @param data_len number of bytes in data
892 * @return 0 to continue extracting, 1 to abort 892 * @return 0 to continue extracting, 1 to abort
893 */ 893 */
894static int 894static int
895le_callback (void *cls, 895le_callback (void *cls,
896 const char *plugin_name, 896 const char *plugin_name,
@@ -930,7 +930,7 @@ get_mime_type (const void *data,
930 return NULL; 930 return NULL;
931 ret = NULL; 931 ret = NULL;
932 EXTRACTOR_extract (pl, NULL, data, data_size, &le_callback, &ret); 932 EXTRACTOR_extract (pl, NULL, data, data_size, &le_callback, &ret);
933 EXTRACTOR_plugin_remove_all (pl); 933 EXTRACTOR_plugin_remove_all (pl);
934 return ret; 934 return ret;
935} 935}
936 936
@@ -994,8 +994,8 @@ file_information_update (void *cls, struct GNUNET_FS_FileInformation *fi,
994 994
995 /* update meta data; first, we copy the unchanged values from the original meta data */ 995 /* update meta data; first, we copy the unchanged values from the original meta data */
996 ctx->md = GNUNET_CONTAINER_meta_data_create (); 996 ctx->md = GNUNET_CONTAINER_meta_data_create ();
997 GNUNET_CONTAINER_meta_data_iterate (meta, 997 GNUNET_CONTAINER_meta_data_iterate (meta,
998 &preserve_meta_items, 998 &preserve_meta_items,
999 ctx); 999 ctx);
1000 /* clear original meta data */ 1000 /* clear original meta data */
1001 GNUNET_CONTAINER_meta_data_clear (meta); 1001 GNUNET_CONTAINER_meta_data_clear (meta);
@@ -1003,7 +1003,7 @@ file_information_update (void *cls, struct GNUNET_FS_FileInformation *fi,
1003 GNUNET_CONTAINER_meta_data_merge (meta, ctx->md); 1003 GNUNET_CONTAINER_meta_data_merge (meta, ctx->md);
1004 GNUNET_CONTAINER_meta_data_destroy (ctx->md); 1004 GNUNET_CONTAINER_meta_data_destroy (ctx->md);
1005 ctx->md = NULL; 1005 ctx->md = NULL;
1006 /* now add all of the values from the model; adding will simply do 1006 /* now add all of the values from the model; adding will simply do
1007 nothing for values that are already in the set because they were preserved */ 1007 nothing for values that are already in the set because they were preserved */
1008 if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (ctx->meta_liststore), &iter)) 1008 if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (ctx->meta_liststore), &iter))
1009 { 1009 {
@@ -1028,7 +1028,7 @@ file_information_update (void *cls, struct GNUNET_FS_FileInformation *fi,
1028 } 1028 }
1029 while (gtk_tree_model_iter_next (GTK_TREE_MODEL (ctx->meta_liststore), &iter)); 1029 while (gtk_tree_model_iter_next (GTK_TREE_MODEL (ctx->meta_liststore), &iter));
1030 } 1030 }
1031 1031
1032 /* finally, if we got a new preview, add it as well */ 1032 /* finally, if we got a new preview, add it as well */
1033 if (ctx->preview_changed == GNUNET_YES) 1033 if (ctx->preview_changed == GNUNET_YES)
1034 { 1034 {
@@ -1058,7 +1058,7 @@ file_information_update (void *cls, struct GNUNET_FS_FileInformation *fi,
1058 GFileInfo *finfo; 1058 GFileInfo *finfo;
1059 const char *gmime; 1059 const char *gmime;
1060 1060
1061 finfo = g_file_query_info (f, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, 1061 finfo = g_file_query_info (f, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
1062 0, NULL, NULL); 1062 0, NULL, NULL);
1063 gmime = g_file_info_get_attribute_string (finfo, 1063 gmime = g_file_info_get_attribute_string (finfo,
1064 G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE); 1064 G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
@@ -1082,7 +1082,7 @@ file_information_update (void *cls, struct GNUNET_FS_FileInformation *fi,
1082 1082
1083/** 1083/**
1084 * The user clicked the 'confirm' button. Push the edits back into the 1084 * The user clicked the 'confirm' button. Push the edits back into the
1085 * FileInformation structure and given it and the options back to the 1085 * FileInformation structure and given it and the options back to the
1086 * callback. Then clean up the dialog. 1086 * callback. Then clean up the dialog.
1087 * 1087 *
1088 * @param button the cancel button 1088 * @param button the cancel button
@@ -1095,11 +1095,11 @@ GNUNET_GTK_edit_publication_confirm_button_clicked_cb (GtkButton * button,
1095 struct EditPublicationDialogContext *ctx = user_data; 1095 struct EditPublicationDialogContext *ctx = user_data;
1096 1096
1097 /* push back changes to file-information */ 1097 /* push back changes to file-information */
1098 GNUNET_FS_file_information_inspect (ctx->fip, 1098 GNUNET_FS_file_information_inspect (ctx->fip,
1099 &file_information_update, 1099 &file_information_update,
1100 ctx); 1100 ctx);
1101 /* call our continuation */ 1101 /* call our continuation */
1102 ctx->cb (ctx->cb_cls, 1102 ctx->cb (ctx->cb_cls,
1103 GTK_RESPONSE_OK, 1103 GTK_RESPONSE_OK,
1104 gtk_entry_get_text (ctx->root_entry)); 1104 gtk_entry_get_text (ctx->root_entry));
1105 /* free resources from the edit dialog */ 1105 /* free resources from the edit dialog */
@@ -1144,13 +1144,13 @@ add_keyword (void *cls, const char *keyword, int is_mandatory)
1144 * used in the main libextractor library and yielding 1144 * used in the main libextractor library and yielding
1145 * meta data). 1145 * meta data).
1146 * @param type libextractor-type describing the meta data 1146 * @param type libextractor-type describing the meta data
1147 * @param format basic format information about data 1147 * @param format basic format information about data
1148 * @param data_mime_type mime-type of data (not of the original file); 1148 * @param data_mime_type mime-type of data (not of the original file);
1149 * can be NULL (if mime-type is not known) 1149 * can be NULL (if mime-type is not known)
1150 * @param data actual meta-data found 1150 * @param data actual meta-data found
1151 * @param data_len number of bytes in data 1151 * @param data_len number of bytes in data
1152 * @return 0 to continue extracting, 1 to abort 1152 * @return 0 to continue extracting, 1 to abort
1153 */ 1153 */
1154static int 1154static int
1155set_window_title_to_filename (void *cls, 1155set_window_title_to_filename (void *cls,
1156 const char *plugin_name, 1156 const char *plugin_name,
@@ -1188,7 +1188,7 @@ set_window_title_to_filename (void *cls,
1188 * @return GNUNET_SYSERR (aborts after first call) 1188 * @return GNUNET_SYSERR (aborts after first call)
1189 */ 1189 */
1190static int 1190static int
1191file_information_import (void *cls, 1191file_information_import (void *cls,
1192 struct GNUNET_FS_FileInformation *fi, 1192 struct GNUNET_FS_FileInformation *fi,
1193 uint64_t length, 1193 uint64_t length,
1194 struct GNUNET_CONTAINER_MetaData *meta, 1194 struct GNUNET_CONTAINER_MetaData *meta,
@@ -1226,7 +1226,7 @@ file_information_import (void *cls,
1226 gtk_image_set_from_pixbuf (ctx->preview_image, pixbuf); 1226 gtk_image_set_from_pixbuf (ctx->preview_image, pixbuf);
1227 } 1227 }
1228 } 1228 }
1229 1229
1230 /* Also update window title based on filename */ 1230 /* Also update window title based on filename */
1231 gtk_window_set_title (ctx->edit_publication_window, _("<unnamed>")); 1231 gtk_window_set_title (ctx->edit_publication_window, _("<unnamed>"));
1232 GNUNET_CONTAINER_meta_data_iterate (meta, 1232 GNUNET_CONTAINER_meta_data_iterate (meta,
@@ -1294,7 +1294,7 @@ GNUNET_FS_GTK_edit_publish_dialog (GtkWindow * parent,
1294 (ctx->builder, 1294 (ctx->builder,
1295 "GNUNET_GTK_edit_publication_keyword_list_tree_view")); 1295 "GNUNET_GTK_edit_publication_keyword_list_tree_view"));
1296 ctx->edit_publication_window = 1296 ctx->edit_publication_window =
1297 GTK_WINDOW (gtk_builder_get_object (ctx->builder, 1297 GTK_WINDOW (gtk_builder_get_object (ctx->builder,
1298 "GNUNET_GTK_edit_publication_window")); 1298 "GNUNET_GTK_edit_publication_window"));
1299 ctx->keywords_liststore = GTK_LIST_STORE (gtk_builder_get_object 1299 ctx->keywords_liststore = GTK_LIST_STORE (gtk_builder_get_object
1300 (ctx->builder, "GNUNET_GTK_publication_keywords_liststore")); 1300 (ctx->builder, "GNUNET_GTK_publication_keywords_liststore"));
@@ -1332,7 +1332,7 @@ GNUNET_FS_GTK_edit_publish_dialog (GtkWindow * parent,
1332 "GNUNET_GTK_edit_publication_anonymity_combobox")); 1332 "GNUNET_GTK_edit_publication_anonymity_combobox"));
1333 1333
1334 /* Basic initialization of widgets models and visibility */ 1334 /* Basic initialization of widgets models and visibility */
1335 gtk_combo_box_set_model (ctx->anonymity_combo, 1335 gtk_combo_box_set_model (ctx->anonymity_combo,
1336 GNUNET_FS_GTK_get_anonymity_level_list_store ()); 1336 GNUNET_FS_GTK_get_anonymity_level_list_store ());
1337 GNUNET_GTK_setup_expiration_year_adjustment (ctx->builder); 1337 GNUNET_GTK_setup_expiration_year_adjustment (ctx->builder);
1338 1338