aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_event-handler.h
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-12-20 08:11:59 +0000
committerLRN <lrn1986@gmail.com>2012-12-20 08:11:59 +0000
commit2159c6ec96392bbde5f0749747eba109cc56861a (patch)
tree71384a7269824026723c84764b0080bee7693166 /src/fs/gnunet-fs-gtk_event-handler.h
parent52e002de9a56d56439ce37d57bad766264f41a10 (diff)
downloadgnunet-gtk-2159c6ec96392bbde5f0749747eba109cc56861a.tar.gz
gnunet-gtk-2159c6ec96392bbde5f0749747eba109cc56861a.zip
Finish fixing #2621
Ask for overwrite confirmation in SaveAs dialog. Add a filenamechange button ("...") next to DownloadAs entry. This button calls the SaveAs dialog, but without anonymity and recursiveness widgets (they are hidden), and it does not initiate the download, just changes the names in download panel. Add vsize group for download panel widgets, they all have the same height now. SaveAs dialog, "Download" and "Download recursively" context menu items now use the same code that "Download!" button uses (start_download2, etc). Old code that they used to need is now removed. Note that this _requires_ selection to follow context menu (right-clicking on a search result MUST select that search result before popping up context menu). Fixed small bugs in get_suggested_filename_anonymity2 (proper initialization for anonymity and result). GNUNET_FS_GTK_open_change_download_name_dialog() can be used to change download name from other files (it's public, unlike direct operations on treestore). Fixed some comments. Currently selected search result is now remembered in current_selected_search_result variable. It is checked on every item update, and if selection did not change, then download panel is not re-populated (re-population would have destroyed any user changes to download panel contents; item updates are made several times per second). Don't trigger GNUNET_FS_GTK_search_treeview_cursor_changed when updated item is not currently selected. Omit the "Download recursively" context menu item for search results that are known to not to be directories.
Diffstat (limited to 'src/fs/gnunet-fs-gtk_event-handler.h')
-rw-r--r--src/fs/gnunet-fs-gtk_event-handler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/gnunet-fs-gtk_event-handler.h b/src/fs/gnunet-fs-gtk_event-handler.h
index 472ae731..a7247c80 100644
--- a/src/fs/gnunet-fs-gtk_event-handler.h
+++ b/src/fs/gnunet-fs-gtk_event-handler.h
@@ -176,7 +176,6 @@ struct DownloadEntry
176 * Has the download completed (or failed)? 176 * Has the download completed (or failed)?
177 */ 177 */
178 int is_done; 178 int is_done;
179
180}; 179};
181 180
182 181
@@ -249,6 +248,9 @@ GNUNET_GTK_add_search_result (struct SearchTab *tab,
249 uint32_t applicability_rank); 248 uint32_t applicability_rank);
250 249
251 250
251void
252GNUNET_FS_GTK_set_item_downloaded_name (GtkTreeStore *ts, GtkTreeRowReference *rr, gchar *filename);
253
252/** 254/**
253 * Notification of FS to a client about the progress of an 255 * Notification of FS to a client about the progress of an
254 * operation. Callbacks of this type will be used for uploads, 256 * operation. Callbacks of this type will be used for uploads,