summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg.h
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-03-07 00:15:43 +0100
committerStefano Karapetsas <[email protected]>2014-03-07 00:15:43 +0100
commitfcb085d9268aa30958d50500d1f7402d471ec7be (patch)
tree6569a0c1cb3934e7620f46bf1aa6d1269f707013 /libmate-desktop/mate-bg.h
parent9b92002e153b16700fd15ffb32fe15d1b2e09704 (diff)
downloadmate-desktop-fcb085d9268aa30958d50500d1f7402d471ec7be.tar.bz2
mate-desktop-fcb085d9268aa30958d50500d1f7402d471ec7be.tar.xz
Revert "gtk3: GdkRGBA support"
This reverts commit e95d24559060365eb4fee8154ad82434bf3c8a0a.
Diffstat (limited to 'libmate-desktop/mate-bg.h')
-rw-r--r--libmate-desktop/mate-bg.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/libmate-desktop/mate-bg.h b/libmate-desktop/mate-bg.h
index d8f8944..f69454d 100644
--- a/libmate-desktop/mate-bg.h
+++ b/libmate-desktop/mate-bg.h
@@ -40,15 +40,6 @@
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))
@@ -110,13 +101,6 @@ 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,
@@ -126,15 +110,6 @@ 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,
@@ -143,14 +118,8 @@ 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)
@@ -169,39 +138,22 @@ gboolean mate_bg_get_image_size (MateBG *bg,
int best_height,
int *width,
int *height);
-#if GTK_CHECK_VERSION (3, 0, 0)
-cairo_surface_t *mate_bg_create_thumbnail (MateBG *bg,
- MateDesktopThumbnailFactory *factory,
- GdkScreen *screen,
- int dest_width,
- int dest_height);
-#else
GdkPixbuf * mate_bg_create_thumbnail (MateBG *bg,
MateDesktopThumbnailFactory *factory,
GdkScreen *screen,
int dest_width,
int dest_height);
-#endif
gboolean mate_bg_is_dark (MateBG *bg,
int dest_width,
int dest_height);
gboolean mate_bg_has_multiple_sizes (MateBG *bg);
gboolean mate_bg_changes_with_time (MateBG *bg);
-#if GTK_CHECK_VERSION (3, 0, 0)
-cairo_surface_t *mate_bg_create_frame_thumbnail (MateBG *bg,
- MateDesktopThumbnailFactory *factory,
- GdkScreen *screen,
- int dest_width,
- int dest_height,
- int frame_num);
-#else
GdkPixbuf * mate_bg_create_frame_thumbnail (MateBG *bg,
MateDesktopThumbnailFactory *factory,
GdkScreen *screen,
int dest_width,
int dest_height,
int frame_num);
-#endif
/* Set a surface as root - not a MateBG method. At some point
* if we decide to stabilize the API then we may want to make