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 51889 - calling gtk_editable_copy_clipboard when current event is NULL leads to seg. fault
calling gtk_editable_copy_clipboard when current event is NULL leads to seg. ...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-03-09 01:18 UTC by Darin Adler
Modified: 2011-02-04 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to handle NULL properly (2.00 KB, patch)
2001-03-09 01:20 UTC, Darin Adler
none Details | Review

Description Darin Adler 2001-03-09 01:18:07 UTC
This comes up when doing a copy operation that's initiated from a Bonobo
menu in the host, but the copying is from a GtkEditable that's inside a
component inside a GtkPlug.

The code has half-hearted support for working without an event time, but
it's not 100% right. During development, we get a critical, but in the
field we get a seg. fault -- I guess G_DISABLE_CHECKS is turned on in gtk
releases by default.

I'll post a patch.
Comment 1 Darin Adler 2001-03-09 01:20:27 UTC
Created attachment 379 [details] [review]
patch to handle NULL properly
Comment 2 Darin Adler 2001-03-09 01:35:47 UTC
One manifestation of this in Nautilus is described in
http://bugzilla.eazel.com/show_bug.cgi?id=7587.
Comment 3 Owen Taylor 2001-03-09 02:20:14 UTC
[ G_DISABLE_CHECKS is not turned on in GTK+ releases unless
  the user explicitely builds with --disable-debug. I wouldn't
  guarantee that nobody builds packages of GTK+ this way; I can
  only say that Red Hat does not. ]

I'm putting this on the 1.2.10 milestone, but I'd would strongly
advice working around the problem, by, for instance, calling
gtk_main_do_event with a C-c keystroke.

(If the entry doesn't have the focus necessarily, then you
could do more complicated hacks such as setting a flag, 
sending an artificial event of some sort to the widget, and
doing the copy in a a signal connection to the event.

Or, you could cheat and grab the focus on the widget.)
Comment 4 Darin Adler 2001-03-09 16:56:39 UTC
FYI: The first hack inside the parentheses was the one I was already
planning to do. I've implemented it and we'll probably use it for
Nautilus 1.0.
Comment 5 Owen Taylor 2001-03-15 04:40:28 UTC
Fixed in CVS, will be in 1.2.10.