Matthias Clasen
ce801641a7
Avoid the use of g_autofree
...
We can't use this in code that may be built on win32,
so lets just not use it at all.
2017-07-24 13:27:29 -04:00
Matthias Clasen
388078ba88
Avoid a race in the file chooser portal
...
Use the new predictable request object path and connect
to the Response signal before issuing the portal call.
This avoids a race that is pretty unlikely to hit in
the filechooser case.
2017-07-07 12:03:55 -04:00
Matthias Clasen
1e47b9ea67
file chooser: Don't pass NULL as title to the portal
...
This causes critical warnings.
2017-06-13 13:11:59 -04:00
Matthias Clasen
3ec954a54a
Avoid a critical warning in the filechooser portal
...
This was showing up when cancelling a portal file chooser
in recipes.
2017-03-17 19:59:55 -04:00
Matthias Clasen
95834ad1e1
Revert "filechooser portal: Make sure we can save"
...
This reverts commit 4875c689a0
.
This was a thinko. Writable is not actually settable from the
application side, but only for the user, from the backend side.
2017-01-17 14:14:44 -05:00
Matthias Clasen
4875c689a0
filechooser portal: Make sure we can save
...
Explicitly request files for saving to be writable, otherwise
we are at the mercy of the portal, which currently gets it wrong.
2017-01-17 14:09:55 -05:00
Matthias Clasen
237df66a33
Port GtkFileChooserNativePortal to gtk_window_export_handle
2016-07-28 13:01:22 -04:00
Patrick Griffis
6184edc318
GtkFileChooserNativePortal: Use correct response code for accept
...
As per the documentation of GtkFileChooserNative.
https://bugzilla.gnome.org/show_bug.cgi?id=768756
2016-07-13 07:02:15 -04:00
Chun-wei Fan
d8815f3e4e
gtk/gtkfilechoosernativeportal.c: Don't use g_autoptr()
...
This code is also built by non-GCC/CLang compilers, so use the normal
ref/unref steps for the GVariant.
https://bugzilla.gnome.org/show_bug.cgi?id=768659
2016-07-13 11:26:35 +08:00
Matthias Clasen
4600209962
Implement combobox apis for GtkFileChooserNativePortal
...
https://bugzilla.gnome.org/show_bug.cgi?id=768499
2016-07-08 00:08:33 -04:00
Matthias Clasen
2b77eaa1ae
Adapt to simplified file chooser portal api
...
OpenFiles is gone, just set the 'multiple' option instead.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
2016-07-08 00:08:17 -04:00
Matthias Clasen
445d12e5cb
file chooser portal: Port to new Request API
...
The portal API has changed, we need to adapt.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
2016-07-08 00:08:11 -04:00
Matthias Clasen
6cf71ed6bb
Use the portal when sandboxed
...
Use the sandbox helper api to find out whether to use
the file chooser portal.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
2016-07-08 00:08:05 -04:00
Matthias Clasen
3b3e1eca2b
portal: Sent more data along
...
Send the current_name, current_folder or current_file fields to
the portal.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
2016-07-08 00:07:59 -04:00
Matthias Clasen
0acb6a0e98
portal: Send file filters to the portal
...
https://bugzilla.gnome.org/show_bug.cgi?id=768499
2016-07-08 00:07:54 -04:00
Alexander Larsson
01d0bac83e
Initial version of file chooser portal support
...
Implement GtkFileChooserNative for sandboxed applications
by talking to org.freedesktop.portal.FileChooser. Currently,
this supports OPEN and SAVE mode.
https://bugzilla.gnome.org/show_bug.cgi?id=768499
2016-07-08 00:07:42 -04:00