Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2009-02-15 13:53:23 (GMT)
committer Christian Persch <chpe@src.gnome.org>2009-02-15 13:53:23 (GMT)
commit0cf51a0dc046d0dc6ccc4cbb3ba5a9e06837a1e5 (patch)
tree3e0c8d8909a024b9e7423c98f1b908622e5c9156 /shell
parentd01ad5a90562ccb83d27d0429ab33d127e36fb44 (diff)
Use g_error_matches.
* shell/ev-window.c: (ev_window_load_job_cb): Use g_error_matches. svn path=/trunk/; revision=3458
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 618be31..f950c9b 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -1439,8 +1439,7 @@ ev_window_load_job_cb (EvJob *job,
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);