Problem with GtkStyle

Can anybody help me?
How can i set some widget's color equal to another?
For example

gtk_widget_modify_base (GTK_WIDGET(some_widget),
GTK_STATE_SELECTED, &(GTK_WIDGET(some_widget)->style->base[GTK_STATE_NORMAL]));

dosen't work: some_widget->style contains default gtk colors instead of themed
ones. Why?

Best regards,
 Eugene                          mailto:e asphyx gmail com
                                 xmpp://asphyx jabber ru

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