[gtk+/rendering-cleanup: 81/92] API: Remove gdk_window_set_back_pixmap()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 81/92] API: Remove gdk_window_set_back_pixmap()
- Date: Fri, 27 Aug 2010 15:20:25 +0000 (UTC)
commit 4071b7e5a8945e53d69bc96f880434a5e57ff5ce
Author: Benjamin Otte <otte redhat com>
Date: Fri Aug 27 12:31:52 2010 +0200
API: Remove gdk_window_set_back_pixmap()
The same effect can be achieved with
gdk_window_set_background_pattern().
gdk/gdk.symbols | 1 -
gdk/gdkprivate.h | 3 ---
gdk/gdkwindow.c | 29 -----------------------------
gdk/gdkwindow.h | 3 ---
4 files changed, 0 insertions(+), 36 deletions(-)
---
diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols
index fe5efc9..de7ec97 100644
--- a/gdk/gdk.symbols
+++ b/gdk/gdk.symbols
@@ -592,7 +592,6 @@ gdk_window_set_support_multidevice
gdk_window_get_support_multidevice
gdk_window_has_native
gdk_window_set_background
-gdk_window_set_back_pixmap
gdk_window_set_background_pattern
gdk_window_set_cursor
gdk_window_shape_combine_region
diff --git a/gdk/gdkprivate.h b/gdk/gdkprivate.h
index 6503862..8e70c98 100644
--- a/gdk/gdkprivate.h
+++ b/gdk/gdkprivate.h
@@ -31,9 +31,6 @@
G_BEGIN_DECLS
-#define GDK_PARENT_RELATIVE_BG ((GdkPixmap *)1L)
-#define GDK_NO_BG ((GdkPixmap *)2L)
-
#ifndef GDK_COMPILATION
#define GDK_WINDOW_TYPE(d) (gdk_window_get_window_type (GDK_WINDOW (d)))
#define GDK_WINDOW_DESTROYED(d) (gdk_window_is_destroyed (GDK_WINDOW (d)))
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 1f24060..2bd7df7 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6716,35 +6716,6 @@ gdk_window_set_background (GdkWindow *window,
cairo_pattern_destroy (pattern);
}
-/* NB: This is more or less a hack now and about to go away. */
-void
-gdk_window_set_back_pixmap (GdkWindow *window,
- GdkPixmap *pixmap,
- gboolean parent_relative)
-{
- cairo_pattern_t *pattern;
-
- g_return_if_fail (GDK_IS_WINDOW (window));
- g_return_if_fail (pixmap == NULL || !parent_relative);
-
- if (parent_relative || pixmap == NULL)
- pattern = NULL;
- else
- {
- static cairo_user_data_key_t key;
- cairo_surface_t *surface = _gdk_drawable_ref_cairo_surface (pixmap);
- pattern = cairo_pattern_create_for_surface (surface);
- cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT);
- g_object_ref (pixmap);
- cairo_pattern_set_user_data (pattern, &key, pixmap, g_object_unref);
- }
-
- gdk_window_set_background_pattern (window, pattern);
-
- if (pattern)
- cairo_pattern_destroy (pattern);
-}
-
/**
* gdk_window_set_background_pattern:
* @window: a #GdkWindow
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index d1cb301..d068f91 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -677,9 +677,6 @@ void gdk_window_set_transient_for (GdkWindow *window,
GdkWindow *parent);
void gdk_window_set_background (GdkWindow *window,
const GdkColor *color);
-void gdk_window_set_back_pixmap (GdkWindow *window,
- GdkPixmap *pixmap,
- gboolean parent_relative);
void gdk_window_set_background_pattern (GdkWindow *window,
cairo_pattern_t *pattern);
cairo_pattern_t *gdk_window_get_background_pattern (GdkWindow *window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]