[gtk/dnd-gestures-2: 134/173] filechooserwidget: Use GDK content formats api:



commit fb4b5c666b36a0a2e1f1f0127ee920cfd160a10f
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 7 00:45:42 2020 -0500

    filechooserwidget: Use GDK content formats api:

 gtk/gtkfilechooserwidget.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index 3bba277ffc..95addd9936 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -8509,8 +8509,7 @@ post_process_ui (GtkFileChooserWidget *impl)
   gtk_tree_selection_set_select_function (selection,
                                           list_select_func,
                                           impl, NULL);
-  formats = gdk_content_formats_new (NULL, 0);
-  formats = gtk_content_formats_add_uri_targets (formats);
+  formats = gdk_content_formats_new_for_gtype (GDK_TYPE_FILE_LIST);
   gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW (priv->browse_files_tree_view),
                                           GDK_BUTTON1_MASK,
                                           formats,


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