X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libview%2Fev-view.c;h=760cf04ffdcf67ca6f431d3b7c13872755db72eb;hb=8cf21129418452a327f4761b9bcf1ccd0fc7a5e8;hp=7ef1dd862b462db4b29f3e79f76ff6e34232421e;hpb=571c029b39457f4971a58f73819f67bd5dcd5145;p=evince.git diff --git a/libview/ev-view.c b/libview/ev-view.c index 7ef1dd86..760cf04f 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -3923,7 +3923,7 @@ draw_loading_text (EvView *view, gint width, height; if (!view->loading_text) { - const gchar *loading_text = _("Loading..."); + const gchar *loading_text = _("Loading…"); PangoLayout *layout; PangoFontDescription *font_desc; PangoRectangle logical_rect; @@ -5367,7 +5367,7 @@ merge_selection_region (EvView *view, view->scale, &tmp_region); - if (tmp_region) { + if (tmp_region && !gdk_region_empty (tmp_region)) { new_sel->covered_region = gdk_region_copy (tmp_region); } } @@ -5454,13 +5454,16 @@ selection_free (EvViewSelection *selection) static void clear_selection (EvView *view) { - g_list_foreach (view->selection_info.selections, (GFunc)selection_free, NULL); - g_list_free (view->selection_info.selections); - view->selection_info.selections = NULL; + if (view->selection_info.selections) { + g_list_foreach (view->selection_info.selections, (GFunc)selection_free, NULL); + g_list_free (view->selection_info.selections); + view->selection_info.selections = NULL; + + g_signal_emit (view, signals[SIGNAL_SELECTION_CHANGED], 0, NULL); + } view->selection_info.in_selection = FALSE; if (view->pixbuf_cache) ev_pixbuf_cache_set_selection_list (view->pixbuf_cache, NULL); - g_signal_emit (view, signals[SIGNAL_SELECTION_CHANGED], 0, NULL); } void