Commit f1a4c080 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Adjust offsets when recursing. (#153682, Felipe Heidrich)

2005-05-17  Matthias Clasen  <mclasen@redhat.com>

	* gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
	when recursing.  (#153682, Felipe Heidrich)
parent c87d85a5
2005-05-17 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
when recursing. (#153682, Felipe Heidrich)
2005-05-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
......
2005-05-17 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
when recursing. (#153682, Felipe Heidrich)
2005-05-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
......
2005-05-17 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkwindow.c (gdk_window_set_bg_pattern): Adjust offsets
when recursing. (#153682, Felipe Heidrich)
2005-05-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkscale.c (gtk_scale_class_init): Don't bind GDK_Page_Up
......
......@@ -1735,8 +1735,10 @@ gdk_window_set_bg_pattern (GdkWindow *window,
if (private->bg_pixmap == GDK_PARENT_RELATIVE_BG && private->parent)
{
x_offset += private->x;
y_offset += private->y;
gdk_window_set_bg_pattern (GDK_WINDOW (private->parent), cr,
private->x, private->y);
x_offset, y_offset);
}
else if (private->bg_pixmap &&
private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
......@@ -1746,7 +1748,7 @@ gdk_window_set_bg_pattern (GdkWindow *window,
cairo_pattern_t *pattern = cairo_pattern_create_for_surface (surface);
cairo_surface_destroy (surface);
if (x_offset != 0 || y_offset)
if (x_offset != 0 || y_offset != 0)
{
cairo_matrix_t matrix;
cairo_matrix_init_translate (&matrix, x_offset, y_offset);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment