forked from AuroraMiddleware/gtk
text: Remove useless gtk_widget_get_allocation call
This commit is contained in:
parent
f9a589c7fd
commit
20ccb53c42
@ -2646,7 +2646,6 @@ gtk_text_show_magnifier (GtkText *self,
|
||||
int y)
|
||||
{
|
||||
GtkTextPrivate *priv = gtk_text_get_instance_private (self);
|
||||
GtkAllocation allocation;
|
||||
cairo_rectangle_int_t rect;
|
||||
GtkAllocation text_allocation;
|
||||
|
||||
@ -2654,8 +2653,6 @@ gtk_text_show_magnifier (GtkText *self,
|
||||
|
||||
gtk_text_ensure_magnifier (self);
|
||||
|
||||
gtk_widget_get_allocation (GTK_WIDGET (self), &allocation);
|
||||
|
||||
rect.x = x + text_allocation.x;
|
||||
rect.width = 1;
|
||||
rect.y = text_allocation.y;
|
||||
|
Loading…
Reference in New Issue
Block a user