Re: problem using pango ...

2013-10-01 Thread Kjell Ahlstedt
Where's the Gtk::Button in your code? Is this-object a Gtk::Button pointer? A Gtk::Button is a container, a Gtk::Bin. If it shows a text, its child widget is probably a Gtk::Label. You should try to change the style of the Button's child instead of the style of the Button itself. Kjell

Re: problem using pango ...

2013-10-01 Thread raespi
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 ?? On

Re: problem using pango ...

2013-10-01 Thread Murray Cumming
On Tue, 2013-10-01 at 12:45 -0400, 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

Re: problem using pango ...

2013-10-01 Thread Kjell Ahlstedt
You can change the style of most widgets. My point is - and that's also what Murray's links describe - that it has no effect to change the font of a Gtk::Button, because the Button does not write the text in it. The text is written by a Label, which is the child of the Button. You must change

Re: problem using pango ...

2013-10-01 Thread raespi
On how many widgets does this happen ?? Only on Gtk::Bin widgets ?? If that's the case, I'll somehow have to typecast to resolve the button's issue On 10/01/2013 02:35 PM, Kjell Ahlstedt wrote: You can change the style of most widgets. My point is - and that's also what Murray's links

Re: problem using pango ...

2013-10-01 Thread raespi
Umm, an ever weirder problem now. I tried the suggestions posted earlier, I Inside my setFont( ... ) function where I receive the according properties: Gtk::Widget* w = 0; w = this-button-get_child(); assert( w ); The assert fails with the error: factory: