Re: combo box



>my_func (GtkWidget* widget, GdkEventKey* event, gpointer data)
>{
>	switch (event->keyval) {
>	...
>	case GDK_Up:
>
>	... do smth. usefull, then i'd like to supress Up ...
>
>	gtk_signal_emit_stop_by_name (GTK_OBJECT (widget), "key_press_event");
>	gtk_signal_emit_stop_by_name (GTK_OBJECT (widget), "key_release_event")
>;
>	break;
>	...
>}
>
>... to prevent focus moving out of entry.
>all works, but i'm getting:
>
>Gtk-WARNING **: gtk_signal_emit_stop(): no current emission (27) for object `G
>tkEntry'

You are trying to stop emissions on both  key_press and key_release,
but when this function is called, only one of these is being emitted.



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