Re: [gtk-list] wondering about signal functions
- From: Jon Trowbridge <trow emccta com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] wondering about signal functions
- Date: Mon, 17 Apr 2000 19:44:39 -0500
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
GNU/Linux: Free your mind and your OS will follow.
] [Thread Prev