rc file
- From: Giovanni Manenti <linux euromatic-automazione it>
- To: Gtk Mailing List <gtk-app-devel-list gnome org>
- Subject: rc file
- Date: Fri, 21 Jan 2005 10:41:00 +0100
hi, I'm using gtk 1.2
I've create a rc file like this:
style "mybutton"
{
fg[SELECTED] = { 1.0, 1.0, 1.0 }
bg[SELECTED] = { 0, 0, 0 }
fg[PRELIGHT] = { 0, 1.0, 1.0 }
bg[PRELIGHT] = { 0, 0, 1.0 }
bg[ACTIVE] = { 1.0, 0, 0 }
fg[ACTIVE] = { 0, 1.0, 0 }
bg[NORMAL] = { 1.0, 1.0, 0 }
fg[NORMAL] = { .99, 0, .99 }
bg[INSENSITIVE] = { 1.0, 1.0, 1.0 }
fg[INSENSITIVE] = { 1.0, 0, 1.0 }
fontset = "-adobe-helvetica-*-*-*-*-30-*-*-*-*-*-*-*"
}
widget_class "*GtkButton*" style "mybutton"
this rc file modify the style of all the button.
How can I modify the style of a single button?
I've tried to create a new style adding
widget "*GtkButton*" style "newbutton"
and adding in the code
gtk_widget_set_name(widget,"newbutton");
but it doesn't work.
Hi
Giovanni
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]