[gtk/dnd-gestures-2: 138/150] calendar: Use GDK content formats api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/dnd-gestures-2: 138/150] calendar: Use GDK content formats api
- Date: Tue, 7 Jan 2020 07:03:31 +0000 (UTC)
commit 46a4b85c6fe6f4a74d20a98d58263519b5a8945c
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Jan 7 00:45:07 2020 -0500
calendar: Use GDK content formats api
gtk/gtkcalendar.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 91259b6922..ff6b550636 100644
--- 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]