[gtk+] entry: Chain up in realize()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] entry: Chain up in realize()
- Date: Tue, 26 Jan 2016 14:58:08 +0000 (UTC)
commit fefc370f6c43ee44c39d7d2a651077242960da02
Author: Benjamin Otte <otte redhat com>
Date: Tue Jan 26 13:23:44 2016 +0100
entry: Chain up in realize()
... instead of copy/pasting what gtk_widget_real_realize() does.
gtk/gtkentry.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index c169008..1d11bbe 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -3302,15 +3302,11 @@ gtk_entry_realize (GtkWidget *widget)
GtkEntry *entry;
GtkEntryPrivate *priv;
EntryIconInfo *icon_info;
- GdkWindow *window;
GdkWindowAttr attributes;
gint attributes_mask;
int i;
- gtk_widget_set_realized (widget, TRUE);
- window = gtk_widget_get_parent_window (widget);
- gtk_widget_set_window (widget, window);
- g_object_ref (window);
+ GTK_WIDGET_CLASS (gtk_entry_parent_class)->realize (widget);
entry = GTK_ENTRY (widget);
priv = entry->priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]