From: Christian Persch Date: Fri, 30 Jan 2009 18:50:40 +0000 (+0000) Subject: Make this return TRUE only if any backends were loaded, so the ev_init() X-Git-Tag: EVINCE_2_25_90~14 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=cdba8578739fd46880c53fdacc66c58b38278506;p=evince.git Make this return TRUE only if any backends were loaded, so the ev_init() * libdocument/ev-backends-manager.c: (ev_backends_manager_load): Make this return TRUE only if any backends were loaded, so the ev_init() function works as documented. svn path=/trunk/; revision=3393 --- diff --git a/ChangeLog b/ChangeLog index d9f6925c..91e90e3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-30 Christian Persch + + * libdocument/ev-backends-manager.c: (ev_backends_manager_load): Make + this return TRUE only if any backends were loaded, so the ev_init() + function works as documented. + 2009-01-30 Christian Persch * evince-document.h: diff --git a/libdocument/ev-backends-manager.c b/libdocument/ev-backends-manager.c index e92ecb5c..de8be24c 100644 --- a/libdocument/ev-backends-manager.c +++ b/libdocument/ev-backends-manager.c @@ -143,7 +143,7 @@ ev_backends_manager_load (void) g_dir_close (dir); - return TRUE; + return ev_backends_list != NULL; } /*