Hi,
in my Linux program I use something like to change the background color
of the mainWindow:
GtkRcStyle *rcStyle=gtk_rc_style_new();
rcStyle->bg[GTK_STATE_NORMAL]=bgColor;
rcStyle->color_flags[GTK_STATE_NORMAL]|=GTK_RC_BG;
gtk_widget_modify_style(mainWindow,rcStyle);
When I compile the same
Daniel Dieterle schrieb:
> since some days i try to code my first gtk program. it 's not more
than a window with a label in it.
> the code is that:
>> #include
>>
>>
>> int main( int argc,
>> char *argv[] )
>> {
[]
>> GtkWidget *label1;
>> gtk_init (&arg
Hi together,
I (only) want to draw a red text "Example" or whatever in the middle of
a GtkDrawable.
First I looked at gdk_draw_text.
I did not find out how to draw a text in a specific color.
And the other problem is that the documentation says that it is deprecated.
I should use Pango rendering