projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ee087f
)
calendar: Use GDK content formats api
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 7 Jan 2020 05:45:07 +0000
(
00:45
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 8 Jan 2020 23:48:22 +0000
(18:48 -0500)
gtk/gtkcalendar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcalendar.c
b/gtk/gtkcalendar.c
index 91259b69224cc71a27c059e59454b6fcf06383fc..ff6b550636827bc72bb1cbc610c534ad6208f543 100644
(file)
--- a/
gtk/gtkcalendar.c
+++ b/
gtk/gtkcalendar.c
@@
-785,8
+785,7
@@
gtk_calendar_init (GtkCalendar *calendar)
priv->in_drag = 0;
- formats = gdk_content_formats_new (NULL, 0);
- formats = gtk_content_formats_add_text_targets (formats);
+ formats = gdk_content_formats_new_for_gtype (G_TYPE_STRING);
dest = gtk_drop_target_new (formats, GDK_ACTION_COPY);
gdk_content_formats_unref (formats);