Commit 96af8db4 authored by Victor Ananjesky's avatar Victor Ananjesky

fix color button for gtk3

parent 92678291
......@@ -326,10 +326,15 @@ set_field_value (guint num, gchar * value)
case YAD_FIELD_COLOR:
{
#if !GTK_CHECK_VERSION(3,0,0)
GdkColor c;
gdk_color_parse (value, &c);
gtk_color_button_set_color (GTK_COLOR_BUTTON (w), &c);
#else
GdkRGBA c;
gdk_rgba_parse (value, &c);
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (w), &c);
#endif
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment