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)
This commit is contained in:
Matthias Clasen 2005-05-17 05:17:08 +00:00 committed by Matthias Clasen
parent c87d85a5aa
commit f1a4c08002
4 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -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);