filechooserwidget: wip

This commit is contained in:
Matthias Clasen 2020-01-06 19:38:17 -05:00
parent 90cda9e307
commit 8e8254feae

View File

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