Fetching gtk theme background color
Posted
by Nicola Leoni
on Stack Overflow
See other posts from Stack Overflow
or by Nicola Leoni
Published on 2010-06-14T09:34:19Z
Indexed on
2010/06/14
9:42 UTC
Read the original article
Hit count: 267
Hi there, I'm almost a gtk newbie, and I'm looking for a way to get the background color for the current theme in gtk. So this code:
GdkColor color = gtk_widget_get_style(mainWindowHandle)->bg[GTK_STATE_NORMAL];
works only after the main window is shown, before returns an strange ugly gray.
© Stack Overflow or respective owner