problem using pango ...

2013-09-30 Thread raespi
Hi ... I'm currently trying to set the font style of a widget from gtkmm. The code is a bit like this: Glib::RefPtr Gtk::Style s = this-object-get_style(); Pango::FontDescription f = s-get_font(); In a later moment I manage to set the according properties of the Pango::FontDescription

Re: problem using pango ...

2013-10-01 Thread raespi
of the style of the Button itself. Kjell 2013-09-30 17:30, raespi skrev: Hi ... I'm currently trying to set the font style of a widget from gtkmm. The code is a bit like this: Glib::RefPtr Gtk::Style s = this-object-get_style(); Pango::FontDescription f = s-get_font(); In a later moment I manage

Re: problem using pango ...

2013-10-01 Thread raespi
, raespi wrote: Actually this-object is a Gtk::Widget. I'm implementing a class hierarchy using the abstract factory pattern, which means that all widgets should be treated equal in this point where I request to change the widget's text style. Can I only change widgets that inherit from Gtk::Bin

Re: problem using pango ...

2013-10-01 Thread raespi
/factory/src/gtk/gtk_button.cpp:39: virtual void GTKButton::setFont(FontType, FontSize, FontSeries, FontShape): Assertion `w' failed. Meaning the button has no child widgets. I'm using gtkmm2, if I didn't mention it earlier. On 10/01/2013 03:03 PM, raespi wrote: On how many widgets does