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

This commit is contained in:
Benjamin Otte 2011-04-16 21:51:41 +02:00
parent fd9aac8225
commit f2a20cd9fd

View File

@ -3400,15 +3400,13 @@ gtk_entry_draw_frame (GtkWidget *widget,
GtkEntry *entry = GTK_ENTRY (widget); GtkEntry *entry = GTK_ENTRY (widget);
GtkEntryPrivate *priv = entry->priv; GtkEntryPrivate *priv = entry->priv;
gint x = 0, y = 0, width, height; gint x = 0, y = 0, width, height;
GtkAllocation allocation;
gint frame_x, frame_y; gint frame_x, frame_y;
cairo_save (cr); cairo_save (cr);
get_frame_size (GTK_ENTRY (widget), TRUE, &frame_x, &frame_y, &width, &height); get_frame_size (GTK_ENTRY (widget), FALSE, &frame_x, &frame_y, &width, &height);
gtk_widget_get_allocation (widget, &allocation);
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 /* Fix a problem with some themes which assume that entry->text_area's
* width equals widget->window's width * width equals widget->window's width