summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/frames.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 54ad369c..d9c7ea1c 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2106,54 +2106,6 @@ meta_frames_destroy_event (GtkWidget *widget,
return TRUE;
}
-#if !GTK_CHECK_VERSION(2,21,6)
-/* Copied from GDK */
-static cairo_surface_t *
-_gdk_drawable_ref_cairo_surface (GdkDrawable *drawable)
-{
- g_return_val_if_fail (GDK_IS_DRAWABLE (drawable), NULL);
-
- return GDK_DRAWABLE_GET_CLASS (drawable)->ref_cairo_surface (drawable);
-}
-
-static cairo_pattern_t *
-gdk_window_get_background_pattern (GdkWindow *window)
-{
- GdkWindowObject *private = (GdkWindowObject *) window;
- cairo_pattern_t *pattern;
-
- g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
-
- if (private->bg_pixmap == GDK_PARENT_RELATIVE_BG)
- pattern = NULL;
- else if (private->bg_pixmap != GDK_NO_BG &&
- private->bg_pixmap != NULL)
- {
- static cairo_user_data_key_t key;
- cairo_surface_t *surface;
-
- surface = _gdk_drawable_ref_cairo_surface (private->bg_pixmap);
- pattern = cairo_pattern_create_for_surface (surface);
- cairo_surface_destroy (surface);
-
- cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT);
- cairo_pattern_set_user_data (pattern,
- &key,
- g_object_ref (private->bg_pixmap),
- g_object_unref);
- }
- else
- {
- pattern =
- cairo_pattern_create_rgb (private->bg_color.red / 65535.,
- private->bg_color.green / 65535.,
- private->bg_color.blue / 65535.);
- }
-
- return pattern;
-}
-#endif
-
static void
setup_bg_cr (cairo_t *cr, GdkWindow *window, int x_offset, int y_offset)
{