summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-labeler.h
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-03-07 00:08:10 +0100
committerStefano Karapetsas <[email protected]>2014-03-07 00:08:10 +0100
commit34e86df9a8608aa88b5712e23ba02e0f4da4aaef (patch)
tree1eb3809a111b4e7336cbbe337804e59c9a072bc0 /libmate-desktop/mate-rr-labeler.h
parentff1ebe30c989cea51c2c33183e2a652394ce6a9c (diff)
parent0eef05307bd0c2acb5c780b8f85a239ca810625d (diff)
downloadmate-desktop-34e86df9a8608aa88b5712e23ba02e0f4da4aaef.tar.bz2
mate-desktop-34e86df9a8608aa88b5712e23ba02e0f4da4aaef.tar.xz
Merge pull request #102 from dnk/rgba
gtk3: GdkRGBA support
Diffstat (limited to 'libmate-desktop/mate-rr-labeler.h')
-rw-r--r--libmate-desktop/mate-rr-labeler.h15
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