+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.
{
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,
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;
break;
}
- if (icon_info->pixbuf != NULL)
+ if (icon_info->pixbuf != NULL && icon_info->window != NULL)
gdk_window_show_unraised (icon_info->window);
}