[xdg-desktop-portal-gnome/gbsneto/remember-last-location: 2/3] filechooser: Store app-id in handler struct
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xdg-desktop-portal-gnome/gbsneto/remember-last-location: 2/3] filechooser: Store app-id in handler struct
- Date: Tue, 30 Aug 2022 20:26:11 +0000 (UTC)
commit 770f7f471a26ad28a07d63974f30abdf6b94f36d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Aug 30 17:22:45 2022 -0300
filechooser: Store app-id in handler struct
It'll be used by next commit to access the app-id during response
time, and save the last folder.
src/filechooser.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/filechooser.c b/src/filechooser.c
index 85d70c5..0f45f84 100644
--- a/src/filechooser.c
+++ b/src/filechooser.c
@@ -53,6 +53,7 @@ typedef struct {
GtkFileChooserAction action;
gboolean multiple;
ExternalWindow *external_parent;
+ char *app_id;
GSList *files;
@@ -71,6 +72,7 @@ file_dialog_handle_free (gpointer data)
{
FileDialogHandle *handle = data;
+ g_clear_pointer (&handle->app_id, g_free);
g_clear_object (&handle->external_parent);
g_clear_object (&handle->request);
g_slist_free_full (handle->files, g_free);
@@ -488,6 +490,7 @@ handle_open (XdpImplFileChooser *object,
handle->choices = g_hash_table_new (g_str_hash, g_str_equal);
handle->external_parent = external_parent;
handle->allow_write = TRUE;
+ handle->app_id = g_strdup (arg_app_id);
g_signal_connect (request, "handle-close", G_CALLBACK (handle_close), handle);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]