diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-27 10:02:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-27 10:02:50 +0000 |
commit | c1320a6bb621148c5961fcc2f84de78aa71fe559 (patch) | |
tree | cac9cfe9e10fd94d9a57f4f49636e3aad42c7ae5 /src/fs_event_handler.c | |
parent | 13b6c09a4c4383b7b1c897ca20aa5d9cee558bb6 (diff) | |
download | gnunet-gtk-c1320a6bb621148c5961fcc2f84de78aa71fe559.tar.gz gnunet-gtk-c1320a6bb621148c5961fcc2f84de78aa71fe559.zip |
adding open-URI support, works for search, download URIs need more work
Diffstat (limited to 'src/fs_event_handler.c')
-rw-r--r-- | src/fs_event_handler.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fs_event_handler.c b/src/fs_event_handler.c index 9837ec98..b4cc9d13 100644 --- a/src/fs_event_handler.c +++ b/src/fs_event_handler.c | |||
@@ -259,9 +259,10 @@ setup_download (struct DownloadEntry *pde, | |||
259 | } | 259 | } |
260 | else | 260 | else |
261 | { | 261 | { |
262 | /* find or create tab with just download results and | 262 | /* FIXME: find or create tab with just download results and |
263 | create new entry! */ | 263 | create new entry! */ |
264 | GNUNET_break (0); | 264 | GNUNET_break (0); |
265 | return de; | ||
265 | } | 266 | } |
266 | path = gtk_tree_row_reference_get_path (de->rr); | 267 | path = gtk_tree_row_reference_get_path (de->rr); |
267 | if (TRUE != gtk_tree_model_get_iter (GTK_TREE_MODEL (de->ts), | 268 | if (TRUE != gtk_tree_model_get_iter (GTK_TREE_MODEL (de->ts), |
@@ -318,6 +319,7 @@ start_download (GtkTreeView *tree_view, | |||
318 | dlc->filename = GNUNET_FS_meta_data_suggest_filename (meta); | 319 | dlc->filename = GNUNET_FS_meta_data_suggest_filename (meta); |
319 | dlc->rr = gtk_tree_row_reference_new (tm, path); | 320 | dlc->rr = gtk_tree_row_reference_new (tm, path); |
320 | dlc->sr = sr->result; | 321 | dlc->sr = sr->result; |
322 | dlc->anonymity = 1; /* FIXME: grab from search? */ | ||
321 | GNUNET_GTK_open_download_as_dialog (dlc); | 323 | GNUNET_GTK_open_download_as_dialog (dlc); |
322 | } | 324 | } |
323 | 325 | ||
@@ -1115,6 +1117,8 @@ GNUNET_GTK_fs_event_handler (void *cls, | |||
1115 | GNUNET_YES); | 1117 | GNUNET_YES); |
1116 | break; | 1118 | break; |
1117 | case GNUNET_FS_STATUS_SEARCH_START: | 1119 | case GNUNET_FS_STATUS_SEARCH_START: |
1120 | fprintf (stderr, | ||
1121 | "Search started!\n"); | ||
1118 | if (info->value.search.pctx != NULL) | 1122 | if (info->value.search.pctx != NULL) |
1119 | { | 1123 | { |
1120 | GNUNET_break (0); | 1124 | GNUNET_break (0); |