- /* first, look for the window */
- /* note, the UID cannot be in both the window list and the preregistered uid list */
- if (priv->window_list) {
- item = g_list_find_custom (priv->window_list,
- uid, (GCompareFunc) compare_msguids);
- if (item)
- retval = TRUE;
- if (win)
- *win = item ? MODEST_WINDOW(item->data) : NULL;
- }