Need help `drawing' to a widget



I have a GtkEventBox who's suppose to mimic a push button but appear like
the GtkHandle widget's handle thing.

So I call gtk_draw_handle() to draw up this widget whenever an
"expose_event" is generated. This works but with one problem.

Whenever I resize the toplevel window, this widget disappears (actually
it gets no event to be redrawn).

I have connected the signal "expose_event" using gtk_signal_connect()
and gtk_signal_connect_after(), neither works when the toplevel window is
resized.

Is there another event that is sent that somehow makes this window
disappear when the toplevel window is resized? I also tried
using "visibility_notify_event" but that did not work either. It only
seems to work if the toplevel window is increased in size but if I shrink
the toplevel window the parent of the GtkEventBox seems to draw over it or
something.

--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
..__                         ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/





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