Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMartin Kretzschmar <martink@src.gnome.org>2005-02-04 12:15:13 (GMT)
committer Martin Kretzschmar <martink@src.gnome.org>2005-02-04 12:15:13 (GMT)
commit826131fb75fadb602b375ba29e593d1e0ab3dde8 (patch)
tree5851dbb9aedf38f467d0e68a48e93904d5884b8d /shell
parentf80cc3fe4144757c2c76247e72c8f430e198d0f6 (diff)
(ev_sidebar_thumbnails_select_page): do nothing unless we have a
document. Prevents warning from scroll_to_cell.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-sidebar-thumbnails.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index 2d71539..382a5a9 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -312,6 +312,10 @@ ev_sidebar_thumbnails_select_page (EvSidebarThumbnails *sidebar,
GtkTreePath *path;
GtkTreeSelection *selection;
+ /* if the EvSidebar's document can't provide thumbnails */
+ if (sidebar->priv->document == NULL)
+ return;
+
path = gtk_tree_path_new_from_indices (page - 1, -1);
selection = gtk_tree_view_get_selection
(GTK_TREE_VIEW (sidebar->priv->tree_view));