summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserbutton.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkfilechooserbutton.c')
-rw-r--r--gtk/gtkfilechooserbutton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 0ecb93a2b0..00bacca83f 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -268,6 +268,7 @@ static void gtk_file_chooser_button_finalize (GObject *ob
/* GtkWidget Functions */
static void gtk_file_chooser_button_destroy (GtkWidget *widget);
static gboolean gtk_file_chooser_button_drag_drop (GtkDropTarget *dest,
+ GdkDrop *drop,
int x,
int y,
GtkWidget *widget);
@@ -1215,12 +1216,11 @@ got_text (GObject *source,
static gboolean
gtk_file_chooser_button_drag_drop (GtkDropTarget *dest,
+ GdkDrop *drop,
int x,
int y,
GtkWidget *button)
{
- GdkDrop *drop = gtk_drop_target_get_drop (dest);
-
if (gdk_drop_has_value (drop, G_TYPE_FILE))
{
gdk_drop_read_value_async (drop, G_TYPE_FILE, G_PRIORITY_DEFAULT, NULL, got_file, button);