Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-04-15 23:37:39 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-04-15 23:37:39 (GMT)
commita5542ba7635d06d7b4b8e94ea472f29cbf4d2c4e (patch)
treee9a04d26deb2f8599c14fcdc124a62d9778ad2b9 /shell/ev-window.c
parentbfde9e1345e4d129511a8f72e592ad7bc9e827c0 (diff)
Remove unused files.
* shell/ev-page-view.c: * shell/ev-page-view.h: Remove unused files. * shell/ev-sidebar-thumbnails.c: (ev_sidebar_thumbnails_set_document): * shell/ev-sidebar.c: (ev_sidebar_set_document), (ev_sidebar_supports_document): * shell/ev-sidebar.h: * shell/ev-window.c: (ev_window_setup_document): Doesn't show thumbnails if document has 1 page. Make sidebar menu entries sensitive only if if they have sense. Fix bug 164811.
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 68940d5..f64580a 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -503,14 +503,6 @@ update_window_title (EvDocument *document, GParamSpec *pspec, EvWindow *ev_windo
g_free (title);
}
-/* This function assumes that ev_window just had ev_window->document set.
- */
-static gboolean
-document_supports_sidebar (EvDocument *document)
-{
- return (EV_IS_DOCUMENT_THUMBNAILS (document) || (EV_IS_DOCUMENT_LINKS (document)));
-}
-
static void
hide_sidebar_and_actions (EvWindow *ev_window)
{
@@ -565,7 +557,7 @@ ev_window_setup_document (EvWindow *ev_window)
ev_window_set_page_mode (ev_window, PAGE_MODE_SINGLE_PAGE);
- if (document_supports_sidebar (document))
+ if (ev_sidebar_supports_document (sidebar, document))
ev_sidebar_set_document (sidebar, document);
else
hide_sidebar_and_actions (ev_window);