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: auto-generated file 'gtkmm/widget.h' (widget.hg)

2013-10-01 Thread John Emmas
On 29/09/2013 17:55, Kjell Ahlstedt wrote: 2013-09-17 09:11, John Emmas skrev: One thing that's of interest is my patch to 'gdk/src/types.hg'. gtkmm 3 has the following #include already added:- #include glibmm/value.h whereas I found that I actually need 3 x extra #includes, like

GMenu, GAction and GtkBuilder

2013-10-01 Thread Murray Cumming
Here is a description of the gtkmm menu API that should replace GtkUIManager. I'll reply with some opinions about the API and reasons why I don't think we should actually deprecate UIManager yet. For a fairly complete example, just look here:

Re: GMenu, GAction and GtkBuilder

2013-10-01 Thread Murray Cumming
On Tue, 2013-10-01 at 12:15 +0200, Murray Cumming wrote: Here is a description of the gtkmm menu API that should replace GtkUIManager. I'll reply with some opinions about the API and reasons why I don't think we should actually deprecate UIManager yet. For a fairly complete example, just

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:

Gtk::TreeModel::get_value_vfunc() constness

2013-10-01 Thread Dominique Würtz
I'm implementing a custom Gtk::TreeModel for displaying database query results. In order to avoid storing the entire result in memory, I'm using a caching mechanism which stores only those rows in the neighborhood of recently queried rows. In my get_value_vfunc(), if a requested row is not in the