summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-10-08 13:55:48 +0800
committerraveit65 <[email protected]>2023-10-19 10:37:20 +0200
commit1c0e360cb2498cc64ea954a8decd93465c00bde7 (patch)
tree47a81240be0ad3c1ae0031cb4b9d0f47dc9741a4 /tools
parentb713be3f27b908d3d62a28270018abefa2c1b8df (diff)
downloadmate-desktop-1c0e360cb2498cc64ea954a8decd93465c00bde7.tar.bz2
mate-desktop-1c0e360cb2498cc64ea954a8decd93465c00bde7.tar.xz
mate-colorsel: Fix compilation warnings use rgba replace color
Diffstat (limited to 'tools')
-rw-r--r--tools/mate-color-select.c4
1 files changed, 2 insertions, 2 deletions
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);