Re: Why GTK+ ignore, that someone want's to create own widget ?!



Op 12/13/2016 om 08:03 PM schreef Ondrej Tuma:
You are near. Application is Mind Map Architect. So I get / use system
colors by default to set map background, selected / normal nodes etc.


You probably will get what you want with gtk_style_context_get, so
something like below:


GdkRGBA *color;
gtk_style_context_get (GtkStyleContext,  GtkStateFlags,
"background-color", &color, NULL);
<code>
gdk_rgba_free (color);


~infirit




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