Re: destroy a widget while keeping the window with Glade
- From: Tristan Van Berkom <tvb gnome org>
- To: Frank Cox <theatre melvilletheatre com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: destroy a widget while keeping the window with Glade
- Date: Sun, 7 Oct 2012 16:59:48 +0900
On Sun, Oct 7, 2012 at 2:57 PM, Frank Cox <theatre melvilletheatre com> wrote:
I've just started playing with Glade and once again I'm wondering if I'm using
the wrong approach to get stuff done, since I can't find anything that tells me
how to do this.
So far, I've been creating a main window for the program and simply creating and
destroying boxes and widgets within that window as different menu options are
selected.
Here is a simple example.
I have a window with a box in it, which in turn contains a button.
Now I want to be able to click on that button and destroy the box without
destroying the window, then create a new box and a new button within the
existing window.
I can do this easily enough by writing the code to do the layout myself, but I
don't see a way to do a Glade layout that can accomplish this.
Just right click on any widget in Glade's palette and chose "Add as toplevel"
Glade/GtkBuilder do not restrict you to using toplevel GtkWindows in your xml.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]