Commit 28cc7bae authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Make GtkEntry hide completely

When it was converted to no-window, we forgot to make it hide/show
its input window as necessary.
parent 335bfbc8
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment