mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 15:01:23 +00:00
calendar: Use GDK content formats api
This commit is contained in:
parent
2ee087f25f
commit
6fcae42dde
@ -785,8 +785,7 @@ gtk_calendar_init (GtkCalendar *calendar)
|
|||||||
|
|
||||||
priv->in_drag = 0;
|
priv->in_drag = 0;
|
||||||
|
|
||||||
formats = gdk_content_formats_new (NULL, 0);
|
formats = gdk_content_formats_new_for_gtype (G_TYPE_STRING);
|
||||||
formats = gtk_content_formats_add_text_targets (formats);
|
|
||||||
dest = gtk_drop_target_new (formats, GDK_ACTION_COPY);
|
dest = gtk_drop_target_new (formats, GDK_ACTION_COPY);
|
||||||
gdk_content_formats_unref (formats);
|
gdk_content_formats_unref (formats);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user