Problem with GtkRcFlags with win32/cygwin

2006-02-17 Thread Bernd Muent
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

Re: easy gtk-programm fault

2006-01-17 Thread Bernd Muent
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

Looking for example to draw a simple red text on my GtkDrawable

2005-12-13 Thread Bernd Muent
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