From 1c0e360cb2498cc64ea954a8decd93465c00bde7 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Sun, 8 Oct 2023 13:55:48 +0800 Subject: mate-colorsel: Fix compilation warnings use rgba replace color --- tools/mate-color-select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/mate-color-select.c b/tools/mate-color-select.c index c222aa8..fa279b4 100644 --- a/tools/mate-color-select.c +++ b/tools/mate-color-select.c @@ -32,10 +32,10 @@ static gboolean copy_color (GtkWidget *widget, GdkEvent *event, MateColorSelectionDialog *color_dialog) { - GdkColor color; + GdkRGBA color; gchar *color_string; - mate_color_selection_get_current_color (MATE_COLOR_SELECTION (color_dialog->colorsel), &color); + mate_color_selection_get_current_rgba (MATE_COLOR_SELECTION (color_dialog->colorsel), &color); g_object_get (color_dialog->colorsel, "hex-string", &color_string, NULL); gtk_clipboard_set_text (gtk_clipboard_get (GDK_SELECTION_CLIPBOARD), color_string, -1); -- cgit v1.2.1