Re: setting the font of a dialog widget
- From: "Garth's KidStuff" <garthskidstuff gmail com>
- To: gtk-app-devel-list gnome org, jcupitt gmail com
- Subject: Re: setting the font of a dialog widget
- Date: Sat, 26 Apr 2008 10:10:45 -0700
Hey there,
I just now got back to this problem. Maybe I'm misunderstanding something,
but it seems that the solution you recommend is solely a solution for
Gtk::Labels -- not for general widgets. I can change the font size for
labels -- but not for other widgets (e.g. CheckButton, RadioButton.).
That's my issue.
To recap: How do I change the font size of a general widget?
Thanks in advance.
2008/4/18 Garth's KidStuff <garthskidstuff gmail com>:
that's not relevant). If the widget I'm trying to set happens to be a
Gtk::Label, then it works. But other widgets (e.g. Gtk::Frame or
Gtk::Checkbutton) don't and just seem to use their default font no matter
what. For example:
I do this with gtk_label_set_markup(). For example:
gtk_label_set_markup (GTK_LABEL (label), "<span font_desc=\"Sans\"
size=\"medium\">hello</span>");
// Add the fixed widget to the dialog and size it properly
get_vbox()->add(m_Fixed);
m_Fixed.set_size_request( 566, 500 );
Fixed size widgets should be avoided if you possibly can, I'm sure you
know this. gtk has a lot of layout widgets you can use to make
resizeable dialogs.
John
--
Garth Upshaw
Garth's KidStuff
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]