Re: Determining widget type

2020-03-28 Thread aitor_czr
Hi Phil, On 28/3/20 9:34, Phil Wolff wrote: I want to modify the primary message widget so I can select and copy the text. ??? Gtk::Box* pBox = pDialog->get_content_area (); ??? std::vector v = pBox->get_children (); ??? Glib::ustring str = ((Gtk::Label*)v[0])->get_label (); This

Re: Determining widget type

2020-03-28 Thread Kjell Ahlstedt via gtkmm-list
On 2020-03-27 16:54, Phil Wolff via gtkmm-list wrote: I want to modify the primary message widget so I can select and copy the text.     Gtk::Box* pBox = pDialog->get_content_area ();     std::vector v = pBox->get_children ();     Glib::ustring str = ((Gtk::Label*)v[0])->get_label (); This

Determining widget type

2020-03-27 Thread Phil Wolff via gtkmm-list
I want to modify the primary message widget so I can select and copy the text.     Gtk::Box* pBox = pDialog->get_content_area ();     std::vector v = pBox->get_children ();     Glib::ustring str = ((Gtk::Label*)v[0])->get_label (); This fails: Gtk-CRITICAL: 08:51:12.080: gtk_label_get_label: