logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git

downloads.h (1064B)


  1. // SPDX-FileCopyrightText: 2019-2022 Badwolf Authors <https://hacktivis.me/projects/badwolf>
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. #include "badwolf.h"
  4. #include <gtk/gtk.h>
  5. struct Download
  6. {
  7. GtkWidget *container;
  8. GtkWidget *icon;
  9. GtkWidget *stop_icon;
  10. GtkWidget *file_path;
  11. GtkWidget *progress;
  12. GtkWidget *status;
  13. GError *error;
  14. };
  15. void download_new_entry(WebKitDownload *webkit_download, struct Download *download);
  16. void
  17. downloadCb_created_destination(WebKitDownload *download, gchar *destination, gpointer user_data);
  18. gboolean downloadCb_decide_destination(WebKitDownload *download,
  19. gchar *suggested_filename,
  20. gpointer user_data);
  21. void downloadCb_failed(WebKitDownload *webkit_download, GError *error, gpointer user_data);
  22. void downloadCb_finished(WebKitDownload *download, gpointer user_data);
  23. void downloadCb_received_data(WebKitDownload *download, guint64 data_lenght, gpointer user_data);
  24. GtkWidget *badwolf_downloads_tab_new();
  25. void badwolf_downloads_tab_attach();