[gtk/dnd-gestures-2: 137/150] iconbrowser: Use GDK content formats api



commit 3abf7236a6450113efdc781981d8a0081184a7c8
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jan 7 00:44:50 2020 -0500

    iconbrowser: Use GDK content formats api

 demos/icon-browser/iconbrowserwin.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c
index f4c3f71d3a..d31a635b4b 100644
--- a/demos/icon-browser/iconbrowserwin.c
+++ b/demos/icon-browser/iconbrowserwin.c
@@ -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,


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