From 1d630a530de8cafd7f4dc1a0a225a0fa335893de Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Thu, 26 Jun 2014 10:14:46 +0200 Subject: MateColorButton: Add function to get/set rgba color for GTK3 --- libmate-desktop/mate-colorbutton.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libmate-desktop/mate-colorbutton.h') diff --git a/libmate-desktop/mate-colorbutton.h b/libmate-desktop/mate-colorbutton.h index 2eeebc1..9bb0686 100644 --- a/libmate-desktop/mate-colorbutton.h +++ b/libmate-desktop/mate-colorbutton.h @@ -81,10 +81,18 @@ GtkWidget *mate_color_button_new (void); GtkWidget *mate_color_button_new_with_color (const GdkColor *color); void mate_color_button_set_color (MateColorButton *color_button, const GdkColor *color); +#if GTK_CHECK_VERSION(3, 0, 0) +void mate_color_button_set_rgba (MateColorButton *color_button, + const GdkRGBA *color); +#endif void mate_color_button_set_alpha (MateColorButton *color_button, guint16 alpha); void mate_color_button_get_color (MateColorButton *color_button, GdkColor *color); +#if GTK_CHECK_VERSION(3, 0, 0) +void mate_color_button_get_rgba (MateColorButton *color_button, + GdkRGBA *color); +#endif guint16 mate_color_button_get_alpha (MateColorButton *color_button); void mate_color_button_set_use_alpha (MateColorButton *color_button, gboolean use_alpha); -- cgit v1.2.1