mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
spinbutton: Use gtk_cairo_transform_to_window()
This commit is contained in:
parent
92732ffea0
commit
bc3d3e6cf4
@ -793,12 +793,10 @@ gtk_spin_button_draw (GtkWidget *widget,
|
||||
if (gtk_cairo_should_draw_window (cr, priv->panel))
|
||||
{
|
||||
GtkShadowType shadow_type;
|
||||
int x, y;
|
||||
|
||||
shadow_type = spin_button_get_shadow_type (spin);
|
||||
|
||||
gdk_window_get_position (priv->panel, &x, &y);
|
||||
cairo_translate (cr, x, y);
|
||||
gtk_cairo_transform_to_window (cr, widget, priv->panel);
|
||||
|
||||
if (shadow_type != GTK_SHADOW_NONE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user