diff options
Diffstat (limited to 'src/plugins/fs/fs.c')
-rw-r--r-- | src/plugins/fs/fs.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/plugins/fs/fs.c b/src/plugins/fs/fs.c index 9614aded..6c5efb3e 100644 --- a/src/plugins/fs/fs.c +++ b/src/plugins/fs/fs.c | |||
@@ -53,17 +53,6 @@ GtkTreeStore *download_summary; | |||
53 | 53 | ||
54 | GtkTreeStore *upload_summary; | 54 | GtkTreeStore *upload_summary; |
55 | 55 | ||
56 | /** | ||
57 | * Last right-click event coordinates in summary. | ||
58 | */ | ||
59 | static unsigned int last_x; | ||
60 | |||
61 | /** | ||
62 | * Last right-click event coordinates in summary. | ||
63 | */ | ||
64 | static unsigned int last_y; | ||
65 | |||
66 | |||
67 | void | 56 | void |
68 | on_updateIntervalComboEntry_changed_fs (GtkWidget * button, | 57 | on_updateIntervalComboEntry_changed_fs (GtkWidget * button, |
69 | GtkWidget * entryBox) | 58 | GtkWidget * entryBox) |
@@ -329,44 +318,6 @@ on_download_summary_selection_changed (gpointer signal, gpointer cls) | |||
329 | > 0); | 318 | > 0); |
330 | } | 319 | } |
331 | 320 | ||
332 | int | ||
333 | on_upload_copy_uri_activate_fs (void *dummy1, GtkWidget * dummy2) | ||
334 | { | ||
335 | GtkWidget *uploadsList = | ||
336 | glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), | ||
337 | "activeUploadsList"); | ||
338 | GtkTreePath *path; | ||
339 | GtkTreeIter iter; | ||
340 | struct GNUNET_ECRS_URI *uri; | ||
341 | char *str; | ||
342 | GtkClipboard *clip; | ||
343 | |||
344 | path = NULL; | ||
345 | if (FALSE == gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (uploadsList), | ||
346 | last_x, | ||
347 | last_y, | ||
348 | &path, NULL, NULL, NULL)) | ||
349 | { | ||
350 | GNUNET_GE_BREAK (NULL, 0); | ||
351 | return FALSE; | ||
352 | } | ||
353 | if (FALSE == gtk_tree_model_get_iter (GTK_TREE_MODEL (upload_summary), | ||
354 | &iter, path)) | ||
355 | { | ||
356 | GNUNET_GE_BREAK (NULL, 0); | ||
357 | gtk_tree_path_free (path); | ||
358 | return FALSE; | ||
359 | } | ||
360 | gtk_tree_path_free (path); | ||
361 | uri = NULL; | ||
362 | gtk_tree_model_get (GTK_TREE_MODEL (upload_summary), | ||
363 | &iter, UPLOAD_URISTRING, &str, -1); | ||
364 | clip = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); | ||
365 | gtk_clipboard_set_text (clip, str, strlen (str)); | ||
366 | GNUNET_free (str); | ||
367 | return FALSE; | ||
368 | } | ||
369 | |||
370 | /** | 321 | /** |
371 | * Setup the summary views (in particular the models | 322 | * Setup the summary views (in particular the models |
372 | * and the renderers). | 323 | * and the renderers). |