diff options
author | Denis Gorodnichev <[email protected]> | 2014-02-27 17:16:51 +0400 |
---|---|---|
committer | Denis Gorodnichev <[email protected]> | 2014-02-27 17:16:51 +0400 |
commit | e95d24559060365eb4fee8154ad82434bf3c8a0a (patch) | |
tree | 1c62646abdff4ae1c191fc4f4f86cfb3933c1ad5 /libmate-desktop/mate-rr-labeler.h | |
parent | 0e7cc64581b44f4f80fa392ee9bff0a139f06785 (diff) | |
download | mate-desktop-e95d24559060365eb4fee8154ad82434bf3c8a0a.tar.bz2 mate-desktop-e95d24559060365eb4fee8154ad82434bf3c8a0a.tar.xz |
gtk3: GdkRGBA support
Diffstat (limited to 'libmate-desktop/mate-rr-labeler.h')
-rw-r--r-- | libmate-desktop/mate-rr-labeler.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libmate-desktop/mate-rr-labeler.h b/libmate-desktop/mate-rr-labeler.h index 33ecb5f..d3688be 100644 --- a/libmate-desktop/mate-rr-labeler.h +++ b/libmate-desktop/mate-rr-labeler.h @@ -32,6 +32,8 @@ #include "mate-rr-config.h" +#include <gtk/gtk.h> + #define MATE_TYPE_RR_LABELER (mate_rr_labeler_get_type ()) #define MATE_RR_LABELER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_RR_LABELER, MateRRLabeler)) #define MATE_RR_LABELER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_RR_LABELER, MateRRLabelerClass)) @@ -39,6 +41,14 @@ #define MATE_IS_RR_LABELER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_RR_LABELER)) #define MATE_RR_LABELER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_RR_LABELER, MateRRLabelerClass)) +#ifndef MATE_DEPRECATED_FOR +#if GTK_CHECK_VERSION (3, 0, 0) +#define MATE_DEPRECATED_FOR(func) G_DEPRECATED_FOR(func) +#else +#define MATE_DEPRECATED_FOR(func) +#endif +#endif + typedef struct _MateRRLabeler MateRRLabeler; typedef struct _MateRRLabelerClass MateRRLabelerClass; @@ -48,6 +58,11 @@ MateRRLabeler *mate_rr_labeler_new (MateRRConfig *config); void mate_rr_labeler_hide (MateRRLabeler *labeler); +#if GTK_CHECK_VERSION (3, 0, 0) +void mate_rr_labeler_get_rgba_for_output (MateRRLabeler *labeler, MateOutputInfo *output, GdkRGBA *color_out); +#endif + +MATE_DEPRECATED_FOR(mate_rr_labeler_get_rgba_for_output) void mate_rr_labeler_get_color_for_output (MateRRLabeler *labeler, MateOutputInfo *output, GdkColor *color_out); #endif |