forked from AuroraMiddleware/gtk
gtkentry: remove unnneded check in map/unmap functions
This commit is contained in:
parent
e3a8e29a6c
commit
8345760fdb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user