[gtk/dnd-gestures-2: 138/175] iconbrowser: Use GDK content formats api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 138/175] iconbrowser: Use GDK content formats api
- Date: Wed, 8 Jan 2020 16:49:27 +0000 (UTC)
commit af0e47b6a33f325d6b732f14d142722749a0c6f0
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]