Re: how to dismiss a widget and be able to call it back again
- From: mick <mickhowe bigpond net au>
- To: gtk-list gnome org
- Subject: Re: how to dismiss a widget and be able to call it back again
- Date: Thu, 17 Jan 2008 10:46:15 +1000
On Thu, 17 Jan 2008 10:37, Andrew Cowie wrote:
> On Thu, 2008-01-17 at 09:41 +1000, mick wrote:
> > I'm having trouble with dismissing my "help" and "about" windows in such
> > a way that I can re-open them.
> >
> > I currently use
> > on_help_destroy_event(...) { return FALSE; }
> > and
> > on_help_close_clicked(...) { gtk_widget_hide(help) }
>
> You're close; instead of these, do the hide() in a handler for
> 'delete-event' and returning TRUE.
>
many thanks, it works now but I also had to move the widget_show(help) outside
the if(!help) block
/]/]ik
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]