[gtk+] entry: Use the new get_frame_size() argument in gtk_entry_draw_frame()



commit f2a20cd9fd09ab7eaf3e961a8d5e46ddcdfe7b79
Author: Benjamin Otte <otte redhat com>
Date:   Sat Apr 16 21:51:41 2011 +0200

    entry: Use the new get_frame_size() argument in gtk_entry_draw_frame()

 gtk/gtkentry.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index a7c73d6..f3eb37a 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3400,15 +3400,13 @@ gtk_entry_draw_frame (GtkWidget       *widget,
   GtkEntry *entry = GTK_ENTRY (widget);
   GtkEntryPrivate *priv = entry->priv;
   gint x = 0, y = 0, width, height;
-  GtkAllocation allocation;
   gint frame_x, frame_y;
 
   cairo_save (cr);
 
-  get_frame_size (GTK_ENTRY (widget), TRUE, &frame_x, &frame_y, &width, &height);
-  gtk_widget_get_allocation (widget, &allocation);
+  get_frame_size (GTK_ENTRY (widget), FALSE, &frame_x, &frame_y, &width, &height);
 
-  cairo_translate (cr, frame_x - allocation.x, frame_y - allocation.y);
+  cairo_translate (cr, frame_x, frame_y);
 
   /* Fix a problem with some themes which assume that entry->text_area's
    * width equals widget->window's width



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]