diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index bdef78ba7d..634eb40818 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -2982,15 +2982,12 @@ gtk_entry_realize (GtkWidget *widget) { GtkEntry *entry; GtkEntryPrivate *priv; - GtkAllocation text_allocation; GTK_WIDGET_CLASS (gtk_entry_parent_class)->realize (widget); entry = GTK_ENTRY (widget); priv = entry->priv; - gtk_entry_get_text_allocation (entry, &text_allocation); - gtk_im_context_set_client_widget (priv->im_context, widget); gtk_entry_adjust_scroll (entry);