[gtkmm] How to use themes?
- From: Alex <d_f0rce gmx de>
- To: gtkmm-list gnome org
- Subject: [gtkmm] How to use themes?
- Date: Sat, 26 Jul 2003 17:05:24 +0200
Hi,
I'm trying to change the layout of my program via the gtkrc config file. My
~/.gtkrc file is used by GTK, but I can't set specific styles for specific
widgets.
~/.gtkrc
-----------------
style "my-labels"
{
font="-monotype-Arial-medium-r-normal-*-18-*-*-*-*-*-iso8859-1"
}
widget "*MYLabel*" style "my-labels"
-----------------
code:
--------------
labelWidget.set_name( "MYLabel" );
Glib::RefPtr<Gtk::Style> labelStyle = Gtk::RC::get_style( labelWidget );
labelWidget.set_style( labelStyle );
--------------
The gtk label is displayed fine, but the font can't be controlled via the
gtkrc file. It is always set to the default font size for labels.
How can I "load" the settings for specific widgets from a gtkrc file?
Greetings,
Alex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]