diff options
Diffstat (limited to 'src/plugins/fs/fs.c')
-rw-r--r-- | src/plugins/fs/fs.c | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/src/plugins/fs/fs.c b/src/plugins/fs/fs.c index 9219bf8e..8118b96a 100644 --- a/src/plugins/fs/fs.c +++ b/src/plugins/fs/fs.c | |||
@@ -329,35 +329,6 @@ on_download_summary_selection_changed (gpointer signal, gpointer cls) | |||
329 | > 0); | 329 | > 0); |
330 | } | 330 | } |
331 | 331 | ||
332 | /** | ||
333 | * The selection of the download summary changed. | ||
334 | * Update button status. | ||
335 | */ | ||
336 | static void | ||
337 | on_search_summary_selection_changed (gpointer signal, gpointer cls) | ||
338 | { | ||
339 | GtkTreeSelection *selection; | ||
340 | GtkWidget *button; | ||
341 | |||
342 | selection = | ||
343 | gtk_tree_view_get_selection (GTK_TREE_VIEW | ||
344 | (glade_xml_get_widget | ||
345 | (GNUNET_GTK_get_main_glade_XML (), | ||
346 | "activeSearchesSummary"))); | ||
347 | button = | ||
348 | glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), | ||
349 | "cancelSearchButton"); | ||
350 | gtk_widget_set_sensitive (button, | ||
351 | gtk_tree_selection_count_selected_rows (selection) | ||
352 | > 0); | ||
353 | button = | ||
354 | glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), | ||
355 | "stopSearchButton"); | ||
356 | gtk_widget_set_sensitive (button, | ||
357 | gtk_tree_selection_count_selected_rows (selection) | ||
358 | > 0); | ||
359 | } | ||
360 | |||
361 | int | 332 | int |
362 | on_upload_copy_uri_activate_fs (void *dummy1, GtkWidget *dummy2) | 333 | on_upload_copy_uri_activate_fs (void *dummy1, GtkWidget *dummy2) |
363 | { | 334 | { |
@@ -405,7 +376,6 @@ fs_summary_start () | |||
405 | { | 376 | { |
406 | GtkComboBoxEntry *searchCB; | 377 | GtkComboBoxEntry *searchCB; |
407 | GtkWidget *uploadEntry; | 378 | GtkWidget *uploadEntry; |
408 | GtkTreeView *searchList; | ||
409 | GtkTreeView *downloadList; | 379 | GtkTreeView *downloadList; |
410 | GtkTreeView *uploadList; | 380 | GtkTreeView *uploadList; |
411 | GtkListStore *model; | 381 | GtkListStore *model; |
@@ -438,52 +408,6 @@ fs_summary_start () | |||
438 | gtk_combo_box_set_model (GTK_COMBO_BOX (searchCB), GTK_TREE_MODEL (model)); | 408 | gtk_combo_box_set_model (GTK_COMBO_BOX (searchCB), GTK_TREE_MODEL (model)); |
439 | gtk_combo_box_entry_set_text_column (searchCB, NS_SEARCH_DESCRIPTION); | 409 | gtk_combo_box_entry_set_text_column (searchCB, NS_SEARCH_DESCRIPTION); |
440 | 410 | ||
441 | /* search summary setup */ | ||
442 | searchList = | ||
443 | GTK_TREE_VIEW (glade_xml_get_widget | ||
444 | (GNUNET_GTK_get_main_glade_XML (), | ||
445 | "activeSearchesSummary")); | ||
446 | search_summary = gtk_list_store_new (SEARCH_SUMMARY_NUM, G_TYPE_STRING, /* name */ | ||
447 | G_TYPE_INT, /* # results */ | ||
448 | G_TYPE_POINTER); /* internal: search list */ | ||
449 | gtk_tree_view_set_model (searchList, GTK_TREE_MODEL (search_summary)); | ||
450 | gtk_tree_selection_set_mode (gtk_tree_view_get_selection (searchList), | ||
451 | GTK_SELECTION_MULTIPLE); | ||
452 | g_signal_connect_data (gtk_tree_view_get_selection (searchList), | ||
453 | "changed", | ||
454 | G_CALLBACK (&on_search_summary_selection_changed), | ||
455 | NULL, NULL, 0); | ||
456 | |||
457 | renderer = gtk_cell_renderer_text_new (); | ||
458 | col = gtk_tree_view_insert_column_with_attributes (searchList, | ||
459 | -1, | ||
460 | _("Query"), | ||
461 | renderer, | ||
462 | "text", | ||
463 | SEARCH_SUMMARY_NAME, | ||
464 | NULL); | ||
465 | column = gtk_tree_view_get_column (searchList, col - 1); | ||
466 | gtk_tree_view_column_set_resizable (column, TRUE); | ||
467 | gtk_tree_view_column_set_clickable (column, TRUE); | ||
468 | gtk_tree_view_column_set_reorderable (column, TRUE); | ||
469 | gtk_tree_view_column_set_sort_column_id (column, SEARCH_SUMMARY_NAME); | ||
470 | gtk_tree_view_column_set_resizable (column, TRUE); | ||
471 | renderer = gtk_cell_renderer_text_new (); | ||
472 | col = gtk_tree_view_insert_column_with_attributes (searchList, | ||
473 | -1, | ||
474 | _("Results"), | ||
475 | renderer, | ||
476 | "text", | ||
477 | SEARCH_SUMMARY_RESULT_COUNT, | ||
478 | NULL); | ||
479 | column = gtk_tree_view_get_column (searchList, col - 1); | ||
480 | gtk_tree_view_column_set_resizable (column, TRUE); | ||
481 | gtk_tree_view_column_set_clickable (column, TRUE); | ||
482 | gtk_tree_view_column_set_reorderable (column, TRUE); | ||
483 | gtk_tree_view_column_set_sort_column_id (column, | ||
484 | SEARCH_SUMMARY_RESULT_COUNT); | ||
485 | gtk_tree_view_column_set_resizable (column, TRUE); | ||
486 | |||
487 | /* download summary setup */ | 411 | /* download summary setup */ |
488 | downloadList = | 412 | downloadList = |
489 | GTK_TREE_VIEW (glade_xml_get_widget | 413 | GTK_TREE_VIEW (glade_xml_get_widget |