Re: [Pango] Calls to Pango::Layout without effect



At the certainty of exposing my ignorance:
 
Could you show me an example of the "dynamic_cast" to which you refer?
 
Thanks,
 
Bob 
 
-------Original Message-------
 
Date: 10/23/05 06:46:26
Subject: Re: [Pango] Calls to Pango::Layout without effect
 
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
 
 


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