adding widget to vbox created by glade
- From: Gezim Hoxha <gezimetc shaw ca>
- To: gtkmm-list gnome org
- Subject: adding widget to vbox created by glade
- Date: Sat, 01 Dec 2007 22:56:30 -0700
Hi all,
I'm using glade to design my interface. I want to add a
Gtk::VolumeButton but glade doesn't have this widget.
So, instead I'm trying to add the volume button using code.
Here's what I have:
Gtk::Window *notWindow;
refXml->get_widget("notificationWindow", notWindow);
notWindow->show();
Gtk::VBox *myvbox = 0;
refXml->get_widget("mainVbox", myvbox);
Gtk::HBox *mybuttons = 0;
refXml->get_widget("buttonsHbox", mybuttons);
myvbox->remove(*mybuttons);
myvbox->pack_end(*mybuttons);
Gtk::VolumeButton my1223;
myvbox->pack_end(my1223);
The problem is, it's not adding "my1223" volume button. I tried
pack_start, pack_end, add methods etc. Remove-ing and pack_end-ing
"mybuttons" works fine and if I don't pack_end "mybuttons" they don't
show up. So, the question is are we allowed to add widgets created in
code to objects created by libglademm?
Any help would be appreciated.
Thanks,
-Gezim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]