summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg.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-bg.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-bg.h')
-rw-r--r--libmate-desktop/mate-bg.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/libmate-desktop/mate-bg.h b/libmate-desktop/mate-bg.h
index f69454d..c15afca 100644
--- a/libmate-desktop/mate-bg.h
+++ b/libmate-desktop/mate-bg.h
@@ -40,6 +40,15 @@
extern "C" {
#endif
+
+#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
+
#define MATE_TYPE_BG (mate_bg_get_type ())
#define MATE_BG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_BG, MateBG))
#define MATE_BG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_BG, MateBGClass))
@@ -101,6 +110,13 @@ void mate_bg_set_filename (MateBG *bg,
const char *filename);
void mate_bg_set_placement (MateBG *bg,
MateBGPlacement placement);
+#if GTK_CHECK_VERSION (3, 0, 0)
+void mate_bg_set_rgba (MateBG *bg,
+ MateBGColorType type,
+ GdkRGBA *primary,
+ GdkRGBA *secondary);
+#endif
+MATE_DEPRECATED_FOR(mate_bg_set_rgba)
void mate_bg_set_color (MateBG *bg,
MateBGColorType type,
GdkColor *primary,
@@ -110,6 +126,15 @@ void mate_bg_set_draw_background (MateBG *bg,
/* Getters */
gboolean mate_bg_get_draw_background (MateBG *bg);
MateBGPlacement mate_bg_get_placement (MateBG *bg);
+
+#if GTK_CHECK_VERSION (3, 0, 0)
+void mate_bg_get_rgba (MateBG *bg,
+ MateBGColorType *type,
+ GdkRGBA *primary,
+ GdkRGBA *secondary);
+#endif
+
+MATE_DEPRECATED_FOR(mate_bg_get_rgba)
void mate_bg_get_color (MateBG *bg,
MateBGColorType *type,
GdkColor *primary,
@@ -118,8 +143,14 @@ const gchar * mate_bg_get_filename (MateBG *bg);
/* Drawing and thumbnailing */
void mate_bg_draw (MateBG *bg,
+#if GTK_CHECK_VERSION(3, 0, 0)
+ cairo_t *cr,
+ gint width,
+ gint height,
+#else
GdkPixbuf *dest,
GdkScreen *screen,
+#endif
gboolean is_root);
#if GTK_CHECK_VERSION(3, 0, 0)