diff options
author | rootavish <[email protected]> | 2014-07-21 19:22:22 +0530 |
---|---|---|
committer | rootavish <[email protected]> | 2014-07-21 19:25:36 +0530 |
commit | b1bed03353e98b968e3f371446b02837f9e3baf7 (patch) | |
tree | f0a8de0c252567610df8fdd12885af1811d856ff /shell | |
parent | c8b63e55987f0ee6d4067a7309ef2fac8119b0cc (diff) | |
download | atril-b1bed03353e98b968e3f371446b02837f9e3baf7.tar.bz2 atril-b1bed03353e98b968e3f371446b02837f9e3baf7.tar.xz |
Program no longer segfaults, but does not give thumbnails
The loading icons for all thumbnails are displayed, but the program does not segfault. Also realized that the absurd resizing of the window was due to the ephy-zoom action on the webview window. Will fix that in the next commit. Will also think of some workaround for screenshots.
For now committed this code so that this can act as a clean slate if I screw up somewhere.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-sidebar-thumbnails.c | 3 | ||||
-rw-r--r-- | shell/ev-window.c | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index 92f24c2a..5c4cb4be 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -374,9 +374,6 @@ clear_range (EvSidebarThumbnails *sidebar_thumbnails, result = gtk_tree_model_iter_next (GTK_TREE_MODEL (priv->list_store), &iter), start_page ++) { EvJobThumbnail *job; - if (priv->document->iswebdocument == TRUE) { - EV_JOB(job)->run_mode = EV_JOB_RUN_MAIN_LOOP ; - } GdkPixbuf *loading_icon = NULL; gint width, height; diff --git a/shell/ev-window.c b/shell/ev-window.c index d73cfba6..277488c6 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -682,8 +682,10 @@ update_sizing_buttons (EvWindow *window) ephy_zoom_action_set_zoom_level (EPHY_ZOOM_ACTION (action), EPHY_ZOOM_BEST_FIT); } else if (page_width) { - ephy_zoom_action_set_zoom_level (EPHY_ZOOM_ACTION (action), - EPHY_ZOOM_FIT_WIDTH); + if (!window->priv->document || (window->priv->document && !window->priv->document->iswebdocument)) { + ephy_zoom_action_set_zoom_level (EPHY_ZOOM_ACTION (action), + EPHY_ZOOM_FIT_WIDTH); + } } } |