X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=blobdiff_plain;f=player%2Fpreferences.c;fp=player%2Fpreferences.c;h=b457c1ef5e37e0731f78fac8570f7d8033f75e20;hp=a9f5f43b661634c56fc116e67c20c04ac9908d9b;hb=efcf6058823d4b4c1a0160b5be079c8e84f59813;hpb=4cea653ead429cf0dbc0b07f24bd791181176e03 diff --git a/player/preferences.c b/player/preferences.c index a9f5f43..b457c1e 100644 --- a/player/preferences.c +++ b/player/preferences.c @@ -305,17 +305,23 @@ on_toggle_underline(GtkToggleButton *button, ChimaraGlk *glk) { void on_foreground_color_set(GtkColorButton *button, ChimaraGlk *glk) { - GdkColor color; - gtk_color_button_get_color(button, &color); - g_object_set(current_tag, "foreground-gdk", &color, "foreground-set", TRUE, NULL); + GdkRGBA color; + gtk_color_chooser_get_rgba(GTK_COLOR_CHOOSER(button), &color); + g_object_set(current_tag, + "foreground-rgba", &color, + "foreground-set", TRUE, + NULL); } void on_background_color_set(GtkColorButton *button, ChimaraGlk *glk) { - GdkColor color; - gtk_color_button_get_color(button, &color); - g_object_set(current_tag, "background-gdk", &color, "background-set", TRUE, NULL); + GdkRGBA color; + gtk_color_chooser_get_rgba(GTK_COLOR_CHOOSER(button), &color); + g_object_set(current_tag, + "background-rgba", &color, + "background-set", TRUE, + NULL); } void