summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@redhat.com>2023-01-06 08:42:04 -0600
committerMarge Bot <marge-bot@gnome.org>2023-01-06 14:48:25 +0000
commitabecebc43854aaf993f573301f86f9fddd15c555 (patch)
treef183a21398c74eb95a32bfd5664d21230487fe2b /lib
parent0044f555851337a8d5031e399a60f781dd643a02 (diff)
downloadepiphany-abecebc43854aaf993f573301f86f9fddd15c555.tar.gz
file-dialog-utils: remove ephy_file_dialog_add_shortcuts()
The underlying API was just removed in gtk!5396, so we have to stop using it. This is fine, though, because all it does is add the downloads folder to the file chooser sidebar, which is redundant because XDG directories are already there by default for a decade or so now. So this code is not useful and can disappear. Thanks to Alexander for telling me exactly what to do here. Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1261>
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-file-dialog-utils.c20
-rw-r--r--lib/ephy-file-dialog-utils.h2
2 files changed, 0 insertions, 22 deletions
diff --git a/lib/ephy-file-dialog-utils.c b/lib/ephy-file-dialog-utils.c
index 71d3d8208..f4f4c992e 100644
--- a/lib/ephy-file-dialog-utils.c
+++ b/lib/ephy-file-dialog-utils.c
@@ -23,8 +23,6 @@
#include "config.h"
#include "ephy-file-dialog-utils.h"
-#include "ephy-file-helpers.h"
-#include "ephy-debug.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
@@ -49,24 +47,6 @@ static const char *image_types[] = {
};
void
-ephy_file_dialog_add_shortcuts (GtkFileDialog *dialog)
-{
- g_autofree char *downloads_dir_path = NULL;
- g_autoptr (GFile) downloads_dir = NULL;
- g_autoptr (GListStore) shortcuts = NULL;
-
- g_assert (GTK_IS_FILE_DIALOG (dialog));
-
- downloads_dir_path = ephy_file_get_downloads_dir ();
- downloads_dir = g_file_new_for_path (downloads_dir_path);
-
- shortcuts = g_list_store_new (G_TYPE_FILE);
- g_list_store_append (shortcuts, downloads_dir);
-
- gtk_file_dialog_set_shortcut_folders (dialog, G_LIST_MODEL (shortcuts));
-}
-
-void
ephy_file_dialog_add_filters (GtkFileDialog *dialog)
{
g_autoptr (GListStore) filters = NULL;
diff --git a/lib/ephy-file-dialog-utils.h b/lib/ephy-file-dialog-utils.h
index e68104b0e..4cb254d34 100644
--- a/lib/ephy-file-dialog-utils.h
+++ b/lib/ephy-file-dialog-utils.h
@@ -27,8 +27,6 @@
G_BEGIN_DECLS
-void ephy_file_dialog_add_shortcuts (GtkFileDialog *dialog);
-
void ephy_file_dialog_add_filters (GtkFileDialog *dialog);
G_END_DECLS