RC FILES QUESTION



hi all,
tutorial says that using:
gtk_widget_set_name() is possible to address tha 'named' object into rc
file.

This seems to be difficult to achieve since modifying the testgtkc:

line 5807: button = gtk_button_new_with_label ("close");
line 5808 (added):   gtk_widget_set_name(button,"mybutton");

and modifyng testgtkrc

style "mystyle" = "button"
{
bg[NORMAL] = { 0.1, 0.6, 0.1 }
}

#widget "main window.*GtkButton*" style "main_buttons"
widget "mybutton.GtkButton" style "mystyle"

doesn't work at  the button shows default style,

surely i'm missing something, someone can help me.
(I hope yes, because this list shows many question  but few answers..)
--
Mario Motta
===========
AI Research Group - Rimini
mmotta@guest.net
http://www.guest.net/homepages/mmotta/index.htm

-- 
Mario Motta
mmotta@guest.net
http://www.guest.net/homepages/mmotta/index.htm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]