gtkentry: remove unnneded check in map/unmap functions

This commit is contained in:
Javier Jardón 2010-09-15 03:28:24 +02:00
parent e3a8e29a6c
commit 8345760fdb

View File

@ -2694,8 +2694,6 @@ gtk_entry_map (GtkWidget *widget)
EntryIconInfo *icon_info = NULL;
gint i;
if (gtk_widget_get_realized (widget) && !gtk_widget_get_mapped (widget))
{
GTK_WIDGET_CLASS (gtk_entry_parent_class)->map (widget);
for (i = 0; i < MAX_ICONS; i++)
@ -2709,7 +2707,6 @@ gtk_entry_map (GtkWidget *widget)
update_cursors (widget);
}
}
static void
gtk_entry_unmap (GtkWidget *widget)
@ -2718,8 +2715,6 @@ gtk_entry_unmap (GtkWidget *widget)
EntryIconInfo *icon_info = NULL;
gint i;
if (gtk_widget_get_mapped (widget))
{
for (i = 0; i < MAX_ICONS; i++)
{
if ((icon_info = priv->icons[i]) != NULL)
@ -2731,7 +2726,6 @@ gtk_entry_unmap (GtkWidget *widget)
GTK_WIDGET_CLASS (gtk_entry_parent_class)->unmap (widget);
}
}
static void
gtk_entry_realize (GtkWidget *widget)