]> Pileus Git - ~andy/gtk/commitdiff
Revert c00b85bf3f9cb1dc77dd22f138eb53048eb355b7
authorMatthias Clasen <mclasen@redhat.com>
Mon, 29 Nov 2010 18:00:04 +0000 (13:00 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 29 Nov 2010 18:00:04 +0000 (13:00 -0500)
This needs more work, currently we do dupe targets when copying
target entries in various places, and consequently free them
later. To do this correctly, the strings need to be interned
or something like that.

gtk/gtkselection.h

index 4fa30a37d961a4a5df03562496213d892017a20d..eddab0f4ad6344e12447303dec13214ca5a22283 100644 (file)
@@ -68,9 +68,9 @@ struct _GtkSelectionData
 
 struct _GtkTargetEntry
 {
-  const gchar *target;
-  guint        flags;
-  guint        info;
+  gchar *target;
+  guint  flags;
+  guint  info;
 };
 
 /* These structures not public, and are here only for the convenience of