Re: how to dismiss a widget and be able to call it back again

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

 



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
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux