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 72337 - GtkText actives on control-space ?
GtkText actives on control-space ?
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: Other
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-02-23 12:44 UTC by Christophe Lambin
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christophe Lambin 2002-02-23 12:44:13 UTC
I've connected a GtkText instance's 'activate' signal to a callback function:

    gtk_signal_connect (GTK_OBJECT(body), "activate",
                        GTK_SIGNAL_FUNC (body_activate_cb), mw);

According to the documentation, this should only get called on
Control-Return.  However, the function is also called when a user hits
Control-Space.

If this is not a bug, is there any way of controlling which keys trigger the 
'activate' signal ?
Comment 1 Owen Taylor 2002-02-23 13:59:15 UTC
What's happening is that Control-<Space> is not being handled
by the text widget so it gets propagated to toplevel, where
it (and Space unmodified) is a binding to activate the default
widget.

You can prevent this by gtk_signak_connect_after() to "key_press_event"
and returning TRUE for Control-Space.

(Won't happen in GTK+-1.3.x/GTK+-2.0 where the keybinding system
is very different, and GtkText has been replaced with GtkTextView)