diff options
Diffstat (limited to 'src/fs_event_handler.c')
-rw-r--r-- | src/fs_event_handler.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/fs_event_handler.c b/src/fs_event_handler.c index b6627a94..ccfab5db 100644 --- a/src/fs_event_handler.c +++ b/src/fs_event_handler.c | |||
@@ -48,11 +48,19 @@ struct SearchTab | |||
48 | }; | 48 | }; |
49 | 49 | ||
50 | 50 | ||
51 | static struct SearchTab *open_head; | 51 | static struct SearchTab *search_tab_head; |
52 | 52 | ||
53 | static struct SearchTab *open_tail; | 53 | static struct SearchTab *search_tab_tail; |
54 | 54 | ||
55 | struct PublishTab | ||
56 | { | ||
57 | struct PublishTab *next; | ||
58 | struct PublishTab *prev; | ||
59 | struct GNUNET_FS_PublishContext *pc; | ||
60 | GtkBuilder *builder; | ||
61 | }; | ||
55 | 62 | ||
63 | //static struct PublishTab *p | ||
56 | 64 | ||
57 | struct SearchResult | 65 | struct SearchResult |
58 | { | 66 | { |
@@ -443,8 +451,8 @@ close_search_tab (struct SearchTab *tab) | |||
443 | gtk_notebook_remove_page (notebook, index); | 451 | gtk_notebook_remove_page (notebook, index); |
444 | g_object_unref (tab->builder); | 452 | g_object_unref (tab->builder); |
445 | GNUNET_free (tab->query_txt); | 453 | GNUNET_free (tab->query_txt); |
446 | GNUNET_CONTAINER_DLL_remove (open_head, | 454 | GNUNET_CONTAINER_DLL_remove (search_tab_head, |
447 | open_tail, | 455 | search_tab_tail, |
448 | tab); | 456 | tab); |
449 | GNUNET_free (tab); | 457 | GNUNET_free (tab); |
450 | } | 458 | } |
@@ -519,8 +527,8 @@ setup_search (struct GNUNET_FS_SearchContext *sc, | |||
519 | gint pages; | 527 | gint pages; |
520 | 528 | ||
521 | tab = GNUNET_malloc (sizeof (struct SearchTab)); | 529 | tab = GNUNET_malloc (sizeof (struct SearchTab)); |
522 | GNUNET_CONTAINER_DLL_insert (open_head, | 530 | GNUNET_CONTAINER_DLL_insert (search_tab_head, |
523 | open_tail, | 531 | search_tab_tail, |
524 | tab); | 532 | tab); |
525 | tab->sc = sc; | 533 | tab->sc = sc; |
526 | if (GNUNET_FS_uri_test_ksk (query)) | 534 | if (GNUNET_FS_uri_test_ksk (query)) |
@@ -955,7 +963,7 @@ GNUNET_GTK_main_window_notebook_switch_page_cb (GtkWidget * dummy, | |||
955 | notebook = GTK_NOTEBOOK (GNUNET_GTK_get_main_window_object ("GNUNET_GTK_main_window_notebook")); | 963 | notebook = GTK_NOTEBOOK (GNUNET_GTK_get_main_window_object ("GNUNET_GTK_main_window_notebook")); |
956 | page = gtk_notebook_get_current_page (notebook); | 964 | page = gtk_notebook_get_current_page (notebook); |
957 | w = gtk_notebook_get_nth_page (notebook, page); | 965 | w = gtk_notebook_get_nth_page (notebook, page); |
958 | tab = open_head; | 966 | tab = search_tab_head; |
959 | while (tab != NULL) | 967 | while (tab != NULL) |
960 | { | 968 | { |
961 | if (tab->frame == w) | 969 | if (tab->frame == w) |