mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
c87d85a5aa
commit
f1a4c08002
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user