]> www.fi.muni.cz Git - evince.git/commit
Remove some assertions, documents can have 0 pages. Make initial current
authorMarco Pesenti Gritti <mpg@redhat.com>
Sat, 16 Apr 2005 10:20:47 +0000 (10:20 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Sat, 16 Apr 2005 10:20:47 +0000 (10:20 +0000)
commit94ba47eee644072736b10ef3fe2188043ade22dd
treef89a8bd2b3366519985f65fdc61707e1fa5c7961
parenta5542ba7635d06d7b4b8e94ea472f29cbf4d2c4e
Remove some assertions, documents can have 0 pages. Make initial current

2005-04-16  Marco Pesenti Gritti <mpg@redhat.com>

        * backend/ev-page-cache.c: (ev_page_cache_init),
        (_ev_page_cache_new):

        Remove some assertions, documents can have 0 pages.
        Make initial current page -1.

        * shell/ev-page-action.c: (page_changed_cb):

        Show "" if current page is -1

        * shell/ev-window.c: (update_action_sensitivity),
        (ev_window_setup_document):

        When document has 0 pages do not set the view
        and make nearly everything insensitive.
ChangeLog
backend/ev-page-cache.c
shell/ev-page-action.c
shell/ev-window.c