From 8e8254feae5476093a92373e1e40fe76ed001eef Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 6 Jan 2020 19:38:17 -0500 Subject: [PATCH] filechooserwidget: wip --- gtk/gtkfilechooserwidget.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index f6288e40e2..8962b872d9 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -8500,7 +8500,6 @@ post_process_ui (GtkFileChooserWidget *impl) GtkCellRenderer *cell; GList *cells; GFile *file; - GtkDragSource *source; GtkDropTarget *dest; GdkContentFormats *formats; @@ -8511,12 +8510,14 @@ post_process_ui (GtkFileChooserWidget *impl) impl, NULL); formats = gdk_content_formats_new (NULL, 0); formats = gtk_content_formats_add_uri_targets (formats); - source = gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW (priv->browse_files_tree_view), - GDK_BUTTON1_MASK, - formats, - GDK_ACTION_COPY | GDK_ACTION_MOVE); + gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW (priv->browse_files_tree_view), + GDK_BUTTON1_MASK, + formats, + GDK_ACTION_COPY | GDK_ACTION_MOVE); +#if 0 g_signal_connect (source, "drag-begin", G_CALLBACK (file_list_drag_begin_cb), impl); g_signal_connect (source, "drag-end", G_CALLBACK (file_list_drag_end_cb), impl); +#endif dest = gtk_drop_target_new (formats, GDK_ACTION_COPY | GDK_ACTION_MOVE);