forked from AuroraMiddleware/gtk
Don't show nonexisting windows
svn path=/trunk/; revision=22169
This commit is contained in:
parent
52f0975370
commit
78b2971d6e
@ -1,3 +1,7 @@
|
||||
2009-01-21 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkentry.c: Don't show windows that may not exist
|
||||
|
||||
2009-01-21 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c: Implement select-by-words for selectable labels.
|
||||
|
@ -2432,7 +2432,7 @@ update_cursors (GtkWidget *widget)
|
||||
{
|
||||
if ((icon_info = priv->icons[i]) != NULL)
|
||||
{
|
||||
if (icon_info->pixbuf != NULL)
|
||||
if (icon_info->pixbuf != NULL && icon_info->window != NULL)
|
||||
gdk_window_show_unraised (icon_info->window);
|
||||
|
||||
/* The icon windows are not children of the visible entry window,
|
||||
@ -3772,7 +3772,7 @@ gtk_entry_motion_notify (GtkWidget *widget,
|
||||
gtk_entry_set_positions (entry, pos, bound);
|
||||
}
|
||||
else
|
||||
gtk_entry_set_positions (entry, tmp_pos, -1);
|
||||
gtk_entry_set_positions (entry, tmp_pos, -1);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
@ -6305,7 +6305,7 @@ gtk_entry_ensure_pixbuf (GtkEntry *entry,
|
||||
break;
|
||||
}
|
||||
|
||||
if (icon_info->pixbuf != NULL)
|
||||
if (icon_info->pixbuf != NULL && icon_info->window != NULL)
|
||||
gdk_window_show_unraised (icon_info->window);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user