Re: gtk_widget_event()
- From: Allin Cottrell <cottrell wfu edu>
- To: <gtk-list gnome org>
- Subject: Re: gtk_widget_event()
- Date: Mon, 11 Dec 2000 14:34:47 -0500 (EST)
On Sun, 10 Dec 2000, Paul Barton-Davis wrote:
> is there a reason why this approach will not work ?
>
> void all_done ()
> {
> ... wrap up ...
> }
>
> gint ok_clicked_handler (GtkWidget *w, GdkEventButton *ev)
> {
> all_done ();
> return TRUE;
> }
>
> gint button_press_handler (GtkWidget *w, GdkEventButton *ev)
>
> {
> if (ev->type == GDK_EVENT_2BUTTON_PRESS) {
> all_done ();
> return TRUE;
> }
>
> ... normal mouse button handling ...
> }
Yes, that's what I have to do. It's just a little complicated
in context, but I'll get it eventually. Thanks to you and Havoc
for the help.
Allin Cottrell.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]