[nautilus] location-entry: Pass drag data time properly
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] location-entry: Pass drag data time properly
- Date: Fri, 31 Dec 2021 10:42:56 +0000 (UTC)
commit 4e4a29d030663dcf186d4c5322f3f3dcb9fab74b
Author: António Fernandes <antoniof gnome org>
Date: Fri Dec 31 10:35:55 2021 +0000
location-entry: Pass drag data time properly
We need to pass the time parameter in the signal data.
This compiled by accident, because the time() function exists,
but we are shadowing it.
Fixes a warning and regression from 01d2507113cf9ba19b0a8d90341a25c7588f5359
src/nautilus-location-entry.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-location-entry.c b/src/nautilus-location-entry.c
index dfdc2a6fe..f7248a438 100644
--- a/src/nautilus-location-entry.c
+++ b/src/nautilus-location-entry.c
@@ -233,6 +233,7 @@ typedef struct
NautilusLocationEntry *self;
GdkDragContext *context;
char **names;
+ guint time;
} OpenWindowsOnDragData;
static void
@@ -282,7 +283,7 @@ confirm_multiple_windows_cb (GtkDialog *dialog,
gtk_widget_destroy (GTK_WIDGET (dialog));
do_open_windows (data, open_multiple);
- gtk_drag_finish (data->context, open_multiple, FALSE, time);
+ gtk_drag_finish (data->context, open_multiple, FALSE, data->time);
}
static void
@@ -322,6 +323,7 @@ drag_data_received_callback (GtkWidget *widget,
op_data->self = g_object_ref (self);
op_data->context = g_object_ref (context);
op_data->names = names;
+ op_data->time = time;
/* Ask user if they really want to open multiple windows
* for multiple dropped URIs. This is likely to have been
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]