projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
62749e3
)
If no connection is available and bs embedded image is not fetched, show
author
Jose Dapena Paz
<jdapena@igalia.com>
Mon, 30 Nov 2009 13:22:46 +0000
(14:22 +0100)
committer
Jose Dapena Paz
<jdapena@igalia.com>
Thu, 10 Dec 2009 10:46:25 +0000
(11:46 +0100)
get_view_images button
src/widgets/modest-gtkhtml-msg-view.c
patch
|
blob
|
history
diff --git
a/src/widgets/modest-gtkhtml-msg-view.c
b/src/widgets/modest-gtkhtml-msg-view.c
index
eff6f93
..
0f6d1cd
100644
(file)
--- a/
src/widgets/modest-gtkhtml-msg-view.c
+++ b/
src/widgets/modest-gtkhtml-msg-view.c
@@
-55,6
+55,7
@@
#include <widgets/modest-ui-constants.h>
#include <modest-icon-names.h>
#include <tny-camel-bs-mime-part.h>
#include <widgets/modest-ui-constants.h>
#include <modest-icon-names.h>
#include <tny-camel-bs-mime-part.h>
+#include <modest-runtime.h>
/* FIXNE: we should have no maemo-deps in widgets/ */
#ifndef MODEST_TOOLKIT_GTK
/* FIXNE: we should have no maemo-deps in widgets/ */
#ifndef MODEST_TOOLKIT_GTK
@@
-1775,7
+1776,8
@@
on_fetch_url (GtkWidget *widget, const gchar *uri,
}
} else if (TNY_IS_CAMEL_BS_MIME_PART (part) &&
!tny_camel_bs_mime_part_is_fetched (TNY_CAMEL_BS_MIME_PART (part))){
}
} else if (TNY_IS_CAMEL_BS_MIME_PART (part) &&
!tny_camel_bs_mime_part_is_fetched (TNY_CAMEL_BS_MIME_PART (part))){
- if (!modest_mime_part_view_get_view_images (MODEST_MIME_PART_VIEW (priv->body_view))) {
+ if (!modest_mime_part_view_get_view_images (MODEST_MIME_PART_VIEW (priv->body_view)) ||
+ !tny_device_is_online (modest_runtime_get_device ())) {
priv->has_blocked_bs_images = TRUE;
tny_stream_close (stream);
return TRUE;
priv->has_blocked_bs_images = TRUE;
tny_stream_close (stream);
return TRUE;