diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-18 02:19:53 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-20 23:12:33 +0100 |
commit | 9a6ec4e9591df1a8ed72bbf8793091a1f325b5ff (patch) | |
tree | a5a8ca3908f228fdfc64acc8a6a7ca3c5508094c /demos/icon-browser | |
parent | 0638bbb5d58d783519fd07dc548996d405398f4f (diff) | |
download | gtk+-9a6ec4e9591df1a8ed72bbf8793091a1f325b5ff.tar.gz |
contentformats: Rename GtkTargetList
It's now called GdkContentsFormat
Diffstat (limited to 'demos/icon-browser')
-rw-r--r-- | demos/icon-browser/iconbrowserwin.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c index 16042398be..96800481fa 100644 --- a/demos/icon-browser/iconbrowserwin.c +++ b/demos/icon-browser/iconbrowserwin.c @@ -439,14 +439,14 @@ static void setup_scalable_image_dnd (GtkWidget *image) { GtkWidget *parent; - GtkTargetList *targets; + GdkContentFormats *targets; parent = gtk_widget_get_parent (image); - targets = gtk_target_list_new (target_table, G_N_ELEMENTS (target_table)); + targets = gdk_content_formats_new (target_table, G_N_ELEMENTS (target_table)); gtk_drag_source_set (parent, GDK_BUTTON1_MASK, targets, GDK_ACTION_COPY); - gtk_target_list_unref (targets); + gdk_content_formats_unref (targets); g_signal_connect (parent, "drag-data-get", G_CALLBACK (get_scalable_image_data), NULL); } @@ -454,17 +454,17 @@ setup_scalable_image_dnd (GtkWidget *image) static void icon_browser_window_init (IconBrowserWindow *win) { - GtkTargetList *list; + GdkContentFormats *list; gtk_widget_init_template (GTK_WIDGET (win)); - list = gtk_target_list_new (NULL, 0); - gtk_target_list_add_text_targets (list); + list = gdk_content_formats_new (NULL, 0); + gtk_content_formats_add_text_targets (list); gtk_icon_view_enable_model_drag_source (GTK_ICON_VIEW (win->list), GDK_BUTTON1_MASK, list, GDK_ACTION_COPY); - gtk_target_list_unref (list); + gdk_content_formats_unref (list); setup_image_dnd (win->image1); setup_image_dnd (win->image2); |