On Fri, 2005-10-21 at 09:24 -0500, Bob Caryl wrote:
> Hey Matt:
>
> I use a Gtk::MessageDialog in one of my apps, so I decided to put my own
> advice into practice. I created a std::vector<Gtk::Widget *> and
> created it with Gtk::MessageDialog::get_children.
>
> std::vector<Gtk::Widget *> widget_list = db->get_children();
>
> As it turns out it only returns one child object, and trying to treat it
> as a label,
>
> for(gint i = 0; i < widget_list.size(); i++)
> {
> printf("%d label = %s\n",i,(char *)((Gtk::Label
> *)widget_list[i])->get_text().c_str());
By the way, a dynamic_cast<> would catch this.
Murray
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list