iconbrowser: Use GDK content formats api

This commit is contained in:
Matthias Clasen 2020-01-07 00:44:50 -05:00
parent 9cc29efa25
commit 2ee087f25f

View File

@ -453,8 +453,7 @@ icon_browser_window_init (IconBrowserWindow *win)
gtk_widget_init_template (GTK_WIDGET (win));
list = gdk_content_formats_new (NULL, 0);
list = gtk_content_formats_add_text_targets (list);
list = gdk_content_formats_new_for_gtype (G_TYPE_STRING);
gtk_icon_view_enable_model_drag_source (GTK_ICON_VIEW (win->list),
GDK_BUTTON1_MASK,
list,