evince r3458 - in trunk: . shell



Author: chpe
Date: Sun Feb 15 13:53:23 2009
New Revision: 3458
URL: http://svn.gnome.org/viewvc/evince?rev=3458&view=rev

Log:
	* shell/ev-window.c: (ev_window_load_job_cb): Use g_error_matches.

Modified:
   trunk/ChangeLog
   trunk/shell/ev-window.c

Modified: trunk/shell/ev-window.c
==============================================================================
--- trunk/shell/ev-window.c	(original)
+++ trunk/shell/ev-window.c	Sun Feb 15 13:53:23 2009
@@ -1439,8 +1439,7 @@
 		return;
 	}
 
-	if (job->error->domain == EV_DOCUMENT_ERROR &&
-	    job->error->code == EV_DOCUMENT_ERROR_ENCRYPTED) {
+	if (g_error_matches (job->error, EV_DOCUMENT_ERROR, EV_DOCUMENT_ERROR_ENCRYPTED)) {
 		gchar *password;
 		
 		setup_view_from_metadata (ev_window);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]