entry: Chain up in realize()

... instead of copy/pasting what gtk_widget_real_realize() does.
This commit is contained in:
Benjamin Otte 2016-01-26 13:23:44 +01:00
parent 02800033d4
commit fefc370f6c

View File

@ -3302,15 +3302,11 @@ gtk_entry_realize (GtkWidget *widget)
GtkEntry *entry; GtkEntry *entry;
GtkEntryPrivate *priv; GtkEntryPrivate *priv;
EntryIconInfo *icon_info; EntryIconInfo *icon_info;
GdkWindow *window;
GdkWindowAttr attributes; GdkWindowAttr attributes;
gint attributes_mask; gint attributes_mask;
int i; int i;
gtk_widget_set_realized (widget, TRUE); GTK_WIDGET_CLASS (gtk_entry_parent_class)->realize (widget);
window = gtk_widget_get_parent_window (widget);
gtk_widget_set_window (widget, window);
g_object_ref (window);
entry = GTK_ENTRY (widget); entry = GTK_ENTRY (widget);
priv = entry->priv; priv = entry->priv;