Re: understanding GtkRGBA
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 gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: understanding GtkRGBA
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
understanding GtkRGBA
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 (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? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list