X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-window.c;h=0205bc45b5e43faae3612d31f251d5e976e27559;hb=09d18721e3015b9e4cc448f1f3620da54784ebba;hp=44a68c66f4d68b7067905b81d97684a470362658;hpb=047fc3d035e7d724e5291b8818f486bc52ac132c;p=evince.git diff --git a/shell/ev-window.c b/shell/ev-window.c index 44a68c66..0205bc45 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include "egg-editable-toolbar.h" @@ -3053,8 +3053,6 @@ ev_window_cmd_view_presentation (GtkAction *action, EvWindow *window) presentation = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); if (presentation) { ev_window_run_presentation (window); - } else { - ev_window_stop_presentation (window, TRUE); } } @@ -4902,7 +4900,8 @@ launch_external_uri (EvWindow *window, EvLinkAction *action) GDK_CURRENT_TIME); #endif - if (!g_strstr_len (uri, strlen (uri), "://")) { + if (!g_strstr_len (uri, strlen (uri), "://") && + !g_str_has_prefix (uri, "mailto:")) { gchar *http; /* Not a valid uri, assuming it's http */