[gtk/dnd-gestures-2: 192/242] filechooserwidget: wip



commit 3aff4614f45c20e22794fbae978fd06de01f9474
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jan 6 19:38:17 2020 -0500

    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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]