On Mon, 2011-05-09 at 17:49 +0200, Milan Crha wrote: > It's just because of (so called) consistency. With merging common error > codes into E_CLIENT_ERROR_ "namespace" I realized that checking for > particular errors will not be that easy as is now, because one might > have two switches, one for domain E_CLIENT_ERROR and the other for > E_CAL/BOOK_ERROR. Not a big deal, but still.
If you're using a switch statement to check for specific GErrors then you're doing it wrong. You should be using g_error_matches() for each case, so it doesn't matter if all the error codes are in the same domain or they're all in different domains. I'd like to get rid of the redundancy. _______________________________________________ evolution-hackers mailing list email@example.com To change your list options or unsubscribe, visit ... http://mail.gnome.org/mailman/listinfo/evolution-hackers