understanding GtkRGBA

2012-10-11 Thread Rudra Banerjee
Dear friends, though this might be Fedora(or gnome shell theme Adwaita) specific problem, I cannot get color from: GdkColor colorRed2 = {0x, 65535, 29555, 24158}; gtk_widget_modify_bg(button, GTK_STATE_NORMAL, colorRed2); So, I am trying to use: gtk_widget_override_background_color

Re: understanding GtkRGBA

2012-10-11 Thread David Nečas
On Thu, Oct 11, 2012 at 11:14:00AM +0100, Rudra Banerjee wrote: So, I am trying to use: gtk_widget_override_background_color (Hbutton, GTK_STATE_NORMAL, GdkRGBA(0,0,0,1.)); ofcourse, this is not the way to use RGBA. What is the correct way of using it? GdkRGBA is a plain C struct and is

Re: understanding GtkRGBA

2012-10-11 Thread David Nečas
On Thu, Oct 11, 2012 at 12:56:36PM +0200, David Nečas wrote: In C99 you can also use (GwyRGBA){0.0, 0.0, 0.0, 1.0}. I mean (GdkRGBA){0.0, 0.0, 0.0, 1.0}, was thinking about something else... Yeti ___ gtk-app-devel-list mailing list