[gtk/dnd-gestures-2: 140/150] filechooserwidget: Use GDK content formats api:



commit 1a9a14d789ab0a291d07e8caa4b0e2fe58b7f192
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 35f60b2d63..53d7fa993b 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -8519,8 +8519,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]