Hi Johan, on Wed, 18 Jun 2003 12:06 +0200, Johan Hovold wrote:
When I tried to connect it to the main window, a backspace in a form (or in the location bar) would trigger "back". Why is this?
This is because it is an event rather than a signal. And events can be transferred to the parent widget if the event handler returns FALSE. So if the (key) event handler in the entry (location bar) returns FALSE, the event is forwarded to the other (key) event handlers of the same widget and then to its parent (the main window). To avoid this, once you handled the event, you can stop the event transmission by making your event handler return TRUE. See GTK tutorial about the events handling.
Why doesn't the the current key_press_handler receive signals when entering text in a form?
This is related to above. The default entry key event handler returns TRUE. So I guess you added a key event handler to the entry and made it return FALSE, am I right? Adiu (Corsican: Farewell) -- Melvin Hadasht