Re: Newbie needs help: gtk_entry's stopped accepting key stroke entires



Hi,

On Tue, 2007-05-08 at 10:46 -0700, crazyluke wrote:

> This code was working as a key event handler:
> 
> static int key_pressed3(GtkWidget* w, GdkEventKey* event, gpointer data) {
> 	if (event->keyval == 65293)
> 		actionOptions(w, data);
> 	return true;
> }

Your code returns TRUE from the event handler. This stops signal
emission and keeps other handlers from being invoked. Check the
documentation of GtkWidget::key-press-event (or any other event signal
handler).

BTW, this would have been more appropriate to ask on gtk-list or
gtk-app-devel-list as this list is about development of GTK+, not about
development using GTK+.


Sven





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]