Commit f2a20cd9 authored by Benjamin Otte's avatar Benjamin Otte

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

parent fd9aac82
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment