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 used as any other plain C struct, please see your C reference guide for the syntax and use of structs. In C89 you need to create it on stack (or on heap) if you want to take its address. In C99 you can also use &(GwyRGBA){0.0, 0.0, 0.0, 1.0}. Yeti _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list