summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-09-23 11:54:06 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:46 +0200
commit90beb8a5147b76d371136a64767cea048248a651 (patch)
tree18d698ea6052580c0873062e7583b50b7dd5bb6c /gtk/gtkentry.c
parente13d93a707f4665805b78bf082943aa9a1c5bd4b (diff)
downloadgtk+-90beb8a5147b76d371136a64767cea048248a651.tar.gz
entry: Use gtk_cairo_transform_to_window()
Diffstat (limited to 'gtk/gtkentry.c')
-rw-r--r--gtk/gtkentry.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 650dc54ed7..149043a1c6 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3465,12 +3465,9 @@ gtk_entry_draw (GtkWidget *widget,
if (gtk_cairo_should_draw_window (cr, entry->text_area))
{
- gint x, y;
-
cairo_save (cr);
- gdk_window_get_position (entry->text_area, &x, &y);
- cairo_translate (cr, x, y);
+ gtk_cairo_transform_to_window (cr, widget, entry->text_area);
gtk_paint_flat_box (style, cr,
state, GTK_SHADOW_NONE,
@@ -3501,12 +3498,9 @@ gtk_entry_draw (GtkWidget *widget,
if (icon_info != NULL && gtk_cairo_should_draw_window (cr, icon_info->window))
{
- gint x, y;
-
cairo_save (cr);
- gdk_window_get_position (icon_info->window, &x, &y);
- cairo_translate (cr, x, y);
+ gtk_cairo_transform_to_window (cr, widget, icon_info->window);
gtk_paint_flat_box (style, cr,
state, GTK_SHADOW_NONE,