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))
|
if (gtk_cairo_should_draw_window (cr, priv->panel))
|
||||||
{
|
{
|
||||||
GtkShadowType shadow_type;
|
GtkShadowType shadow_type;
|
||||||
int x, y;
|
|
||||||
|
|
||||||
shadow_type = spin_button_get_shadow_type (spin);
|
shadow_type = spin_button_get_shadow_type (spin);
|
||||||
|
|
||||||
gdk_window_get_position (priv->panel, &x, &y);
|
gtk_cairo_transform_to_window (cr, widget, priv->panel);
|
||||||
cairo_translate (cr, x, y);
|
|
||||||
|
|
||||||
if (shadow_type != GTK_SHADOW_NONE)
|
if (shadow_type != GTK_SHADOW_NONE)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user