[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: simulating a keypress-event
- From: Clemens Kirchgatterer <clemens root at>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: simulating a keypress-event
- Date: Wed, 4 Oct 2000 01:48:07 +0200
on Wed, 04 Oct 2000 Havoc Pennington wrote:
> You can't emit these signals yourself. You have to do it via the
> public interface, which is gtk_widget_event() to send the event to a
> specific widget and gtk_main_do_event() to process the event as it
> would normally be processed (propagated up the widget hierarchy).
> The segfault is likely just that you're emitting the signal without
> passing in a location for the emission return value, but don't worry
> about that, just don't call gtk_signal_emit directly.
ok! things work fine, exept that i can't move the cursor or delete
what i've "typed".
my code looks like this now:
event.type = GDK_KEY_PRESS;
event.string = typed;
event.length = 1;
gtk_widget_event(GTK_WIDGET(entry_typed), (GdkEvent *)&event);
one more hint what to asigne to event.string to make things work?
thanx so far ...
clemens
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]