re: re: tuning widgets base size

2009-03-03 Thread Garth's KidStuff
A pointer to the context's default font description. This value must not be modified or freed Well, yes. I interpreted this as meaning that I shouldn't modify the pointer itself. And yes -- the solution I gave was gtkmm. Glad you found the gtk solution. I should point out that one thing that

re: tuning widgets base size

2009-03-02 Thread Garth's KidStuff
But this doesn't work. What is the right solution of my problem? Finaly I want make widgets smaller than default widgets, like toolbox widgets in The GIMP. void LXDialog::ShrinkWidgetFont( Gtk::Widget* pCtrl, // [in] Control to shrink the text of real scale) // [in] scale factor

Re: tuning widgets base size

2009-03-02 Thread Alexander
On Monday 02 March 2009, Garth's KidStuff wrote: But this doesn't work. What is the right solution of my problem? Finaly I want make widgets smaller than default widgets, like toolbox widgets in The GIMP. void LXDialog::ShrinkWidgetFont( Gtk::Widget* pCtrl, // [in] Control to shrink

tuning widgets base size

2009-03-01 Thread Alexander
Hi, list. I've noticed many widgets calculate its base size relying on font sizes (font size, ascent, descent...) of its pango context. Thus I've tried to change PangoFontDescription of widgets in this way just after widget creation: context = gtk_widget_get_pango_context ( wg ); descr1 =