[GTK+2] gtk_widget_modify_bg() doesn't work on Windows
- From: Alessandro Francesconi <alessandrofrancesconi live it>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: [GTK+2] gtk_widget_modify_bg() doesn't work on Windows
- Date: Thu, 27 Jun 2013 22:54:47 +0000
Hello,
I have a piece of code that shows a matrix of 5x5 GtkButtons.
Each one must be black or white.
I managed to do this with gtk_widget_modify_bg(), for example:
// prepare colors
GdkColor color_black, color_white;
gdk_color_parse ("black", &color_black);
gdk_color_parse ("white", &color_white);
// assign colors to some buttons...
gtk_widget_modify_bg(GTK_WIDGET(button1), GTK_STATE_NORMAL, &color_black);
gtk_widget_modify_bg(GTK_WIDGET(button2), GTK_STATE_NORMAL, &color_white);
This works under Linux, here is a pic: http://oi44.tinypic.com/5exx79.jpg
But on Windows (8 - 64bit with GTK+ 2.16) the result is this: http://oi40.tinypic.com/k00woj.jpg
Can you help me?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]