[gtk+] spinbutton: Use gtk_cairo_transform_to_window()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] spinbutton: Use gtk_cairo_transform_to_window()
- Date: Sun, 26 Sep 2010 13:48:03 +0000 (UTC)
commit bc3d3e6cf49bc9568ea7f977281c595fb71812ef
Author: Benjamin Otte <otte redhat com>
Date: Thu Sep 23 11:54:44 2010 +0200
spinbutton: Use gtk_cairo_transform_to_window()
gtk/gtkspinbutton.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 0d29daa..cef3c7b 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]