Re: [gtk-list] wondering about signal functions



On Mon, Apr 17, 2000 at 11:31:18AM -0700, Ben K wrote:
> my question is this: can i also redraw the drawing area by calling the 
> expose_event function normally, (i.e., like a C user function)? or does the 
> function have to have a gdk expose event signal passed to it?

If you want the right thing to happen, you need an expose event.
To synthesize one, use gtk_widget_draw().

As always, the "Scribble" example in the GTK tutorial is an excellent
source of info for this sort of thing.

> I have briefly tried gtk_signal_emit, but i have found that it segs like 
> crazy, so i must be using it incorrectly.

This is a good time to repeat a very important fact: unless you
*really* know what you are doing, never call gtk_signal_emit().  As a
rule, gtk_signal_emit() should be used only while implementing new
widgets, and not in user code.  If you violate this rule, you are just
begging for flaming death to swoop down from the sky and smash your
pitiful program.

-JT


-- 
GNU/Linux: Free your mind and your OS will follow.



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