[gtk+] Make GtkEntry hide completely
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make GtkEntry hide completely
- Date: Mon, 20 Dec 2010 17:28:56 +0000 (UTC)
commit 28cc7baef0c2f4e80113395a48e562e427211f03
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 20 12:28:05 2010 -0500
Make GtkEntry hide completely
When it was converted to no-window, we forgot to make it hide/show
its input window as necessary.
gtk/gtkentry.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 9efabbd..b344349 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -2775,6 +2775,8 @@ gtk_entry_map (GtkWidget *widget)
GTK_WIDGET_CLASS (gtk_entry_parent_class)->map (widget);
+ gdk_window_show (priv->text_area);
+
for (i = 0; i < MAX_ICONS; i++)
{
if ((icon_info = priv->icons[i]) != NULL)
@@ -2804,6 +2806,8 @@ gtk_entry_unmap (GtkWidget *widget)
}
}
+ gdk_window_hide (priv->text_area);
+
GTK_WIDGET_CLASS (gtk_entry_parent_class)->unmap (widget);
}
@@ -2863,8 +2867,6 @@ gtk_entry_realize (GtkWidget *widget)
gtk_widget_style_attach (widget);
- gdk_window_show (priv->text_area);
-
gtk_im_context_set_client_window (priv->im_context, priv->text_area);
gtk_entry_adjust_scroll (entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]