summaryrefslogtreecommitdiffstats
path: root/widget/gtk/nsFilePicker.h
diff options
context:
space:
mode:
authorAscrod <32915892+Ascrod@users.noreply.github.com>2019-08-10 17:26:31 -0400
committerAscrod <32915892+Ascrod@users.noreply.github.com>2019-08-10 17:26:31 -0400
commit47c48dfcb87a574f6b96f3abf3ed14b9b08b2371 (patch)
tree0903b79fb1799e91a22d2ecb437e21588172fdc4 /widget/gtk/nsFilePicker.h
parentb5cbb4d2f8d43469d1eb80cfcff5eae4dee706e2 (diff)
downloadUXP-47c48dfcb87a574f6b96f3abf3ed14b9b08b2371.tar
UXP-47c48dfcb87a574f6b96f3abf3ed14b9b08b2371.tar.gz
UXP-47c48dfcb87a574f6b96f3abf3ed14b9b08b2371.tar.lz
UXP-47c48dfcb87a574f6b96f3abf3ed14b9b08b2371.tar.xz
UXP-47c48dfcb87a574f6b96f3abf3ed14b9b08b2371.zip
Issue #999 - Use xdg-desktop-portal for file selection dialogs on Linux.
Diffstat (limited to 'widget/gtk/nsFilePicker.h')
-rw-r--r--widget/gtk/nsFilePicker.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/widget/gtk/nsFilePicker.h b/widget/gtk/nsFilePicker.h
index 2b5042098..f462ca324 100644
--- a/widget/gtk/nsFilePicker.h
+++ b/widget/gtk/nsFilePicker.h
@@ -48,12 +48,12 @@ public:
protected:
virtual ~nsFilePicker();
- void ReadValuesFromFileChooser(GtkWidget *file_chooser);
+ void ReadValuesFromFileChooser(void *file_chooser);
- static void OnResponse(GtkWidget* dialog, gint response_id,
+ static void OnResponse(void* dialog, gint response_id,
gpointer user_data);
- static void OnDestroy(GtkWidget* dialog, gpointer user_data);
- void Done(GtkWidget* dialog, gint response_id);
+ static void OnDestroy(GtkWidget* file_chooser, gpointer user_data);
+ void Done(void* file_chooser, gint response_id);
nsCOMPtr<nsIWidget> mParentWidget;
nsCOMPtr<nsIFilePickerShownCallback> mCallback;
@@ -74,6 +74,15 @@ protected:
private:
static nsIFile *mPrevDisplayDirectory;
+ void *GtkFileChooserNew(
+ const gchar *title, GtkWindow *parent,
+ GtkFileChooserAction action,
+ const gchar *accept_label);
+ void GtkFileChooserShow(void *file_chooser);
+ void GtkFileChooserDestroy(void *file_chooser);
+ void GtkFileChooserSetModal(void *file_chooser, GtkWindow* parent_widget,
+ gboolean modal);
+
#if (MOZ_WIDGET_GTK == 3)
GtkFileChooserWidget *mFileChooserDelegate;
#endif