Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
8345760f
Commit
8345760f
authored
Sep 15, 2010
by
Javier Jardón
Browse files
gtkentry: remove unnneded check in map/unmap functions
parent
e3a8e29a
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk/gtkentry.c
View file @
8345760f
...
...
@@ -2694,21 +2694,18 @@ 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);
GTK_WIDGET_CLASS (gtk_entry_parent_class)->map (widget);
for (i = 0; i < MAX_ICONS; i++)
for (i = 0; i < MAX_ICONS; i++)
{
if ((icon_info = priv->icons[i]) != NULL)
{
if ((icon_info = priv->icons[i]) != NULL)
{
if (icon_info->pixbuf != NULL && icon_info->window != NULL)
gdk_window_show (icon_info->window);
}
if (icon_info->pixbuf != NULL && icon_info->window != NULL)
gdk_window_show (icon_info->window);
}
update_cursors (widget);
}
update_cursors (widget);
}
static void
...
...
@@ -2718,19 +2715,16 @@ gtk_entry_unmap (GtkWidget *widget)
EntryIconInfo *icon_info = NULL;
gint i;
if (gtk_widget_get_mapped (widget)
)
for (i = 0; i < MAX_ICONS; i++
)
{
for (i = 0; i < MAX_ICONS; i++
)
if ((icon_info = priv->icons[i]) != NULL
)
{
if ((icon_info = priv->icons[i]) != NULL)
{
if (icon_info->pixbuf != NULL && icon_info->window != NULL)
gdk_window_hide (icon_info->window);
}
if (icon_info->pixbuf != NULL && icon_info->window != NULL)
gdk_window_hide (icon_info->window);
}
GTK_WIDGET_CLASS (gtk_entry_parent_class)->unmap (widget);
}
GTK_WIDGET_CLASS (gtk_entry_parent_class)->unmap (widget);
}
static void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment