After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 90595 - clipboard selection is broken after 08/01
clipboard selection is broken after 08/01
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
unspecified
Other All
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 85052
 
 
Reported: 2002-08-13 01:28 UTC by Hidetoshi Tajima
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hidetoshi Tajima 2002-08-13 01:28:24 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)
        {
Comment 1 Hidetoshi Tajima 2002-08-14 15:13:49 UTC
commit to the HEAD.