]> Pileus Git - ~andy/gtk/commitdiff
entry: Use the new get_frame_size() argument in gtk_entry_draw_frame()
authorBenjamin Otte <otte@redhat.com>
Sat, 16 Apr 2011 19:51:41 +0000 (21:51 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 16 Apr 2011 20:31:24 +0000 (22:31 +0200)
gtk/gtkentry.c

index a7c73d60f56970c59797e08129286ce127be0942..f3eb37ae414bf7f8fa4375976dcd5ff1752844b7 100644 (file)
@@ -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