GNOME Bugzilla – Bug 90595
clipboard selection is broken after 08/01
Last modified: 2004-12-22 21:47:04 UTC
Cannot cut&paste from one app to another. A patch is like below. Actually, only gdk's one will be needed. Index: gtk/gtkselection.c =================================================================== RCS file: /cvs/gnome/gtk+/gtk/gtkselection.c,v retrieving revision 1.54 diff -u -r1.54 gtkselection.c --- gtk/gtkselection.c 2002/06/20 23:59:21 1.54 +++ gtk/gtkselection.c 2002/08/13 01:27:58 @@ -1004,6 +1004,8 @@ gtk_selection_atoms[MULTIPLE] = gdk_atom_intern ("MULTIPLE", FALSE); gtk_selection_atoms[TIMESTAMP] = gdk_atom_intern ("TIMESTAMP", FALSE); gtk_selection_atoms[TARGETS] = gdk_atom_intern ("TARGETS", FALSE); + + initialize = FALSE; } /************************************************************* Index: gdk/x11/gdkselection-x11.c =================================================================== RCS file: /cvs/gnome/gtk+/gdk/x11/gdkselection-x11.c,v retrieving revision 1.31 diff -u -r1.31 gdkselection-x11.c --- gdk/x11/gdkselection-x11.c 2002/08/01 15:28:40 1.31 +++ gdk/x11/gdkselection-x11.c 2002/08/13 01:28:03 @@ -298,7 +298,7 @@ /* Add on an extra byte to handle null termination. X guarantees that t will be 1 longer than nbytes and null terminated */ - length = nbytes + 1; + length = nitems + 1; if (data) {
commit to the HEAD.