diff options
author | António Fernandes <antoniof@gnome.org> | 2021-12-31 10:35:55 +0000 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2021-12-31 10:35:55 +0000 |
commit | 4e4a29d030663dcf186d4c5322f3f3dcb9fab74b (patch) | |
tree | 56ab27a4748038526430b1b42f3dde5cb9a25ac0 | |
parent | 2972cdc5516fb99c329fa65bc2ee9fdc2555d46b (diff) | |
download | nautilus-4e4a29d030663dcf186d4c5322f3f3dcb9fab74b.tar.gz |
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
-rw-r--r-- | src/nautilus-location-entry.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |