Creating a widget with glade without a window
| From: | Roberto Villarreal | Date: | Mon, 22 Jul 2002 20:59:36 +0000 |
| Subject: | Creating a widget with glade without a window | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2276@lists.php.net to get a copy of this message | ||
Hi, i am trying to create a Widget (vbox) with some other widgets in it but i dont want it attached
to any window so I can do something like this:
$this->glade_main = &new $class('main.glade');
$main_window = $this->glade_main->get_widget("main_window");
$main_vbox = $this->glade_main->get_widget("main_vbox");
$this->glade_tasks = &new $class('tasks.glade');
$vbox = $this->glade_tasks->get_widget("vbox1");
$main_vbox->pack_start($vbox);
$main_window->show_all();
What i want is to have my main.glade window with a menu, an statusbar, an scrolled window in it and
all of the others "modules" like tasks in another .glade file that i just need to
pack_start them to the scrolled window (or a vbox)
Hope you understand me...
Thank you in advance