Re: return values of event handlers

Esteban Quijano Vincenzi <Esteban Quijano artinsoft com> writes:
> I didn't know that. As a matter of fact, right now I'm trying to stop all handlers
> for configure-event so the window will not be erased before the expose-event is
> called. I don't want that flickering when resizing the window so inside the callback
> function for the configure-event I put something like this:
>    ...
>    gtk_signal_emit_stop_by_name(GTK_OBJECT(widget), "configure-event");
>    ...
> and it works, the window is not erased! The problem is that the expose-event is never
> called.

Well yes, that is the problem. ;-) That's why GTK redraws in response
to configure events. If you break GTK, oddly enough it will no longer
work. ;-)

GTK 2 has a nicer solution to this, but it's not something you can
implement in an application with GTK 1.2.


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