[balsa] Handle WebKit signal correctly
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [balsa] Handle WebKit signal correctly
- Date: Sun, 15 Nov 2009 23:42:16 +0000 (UTC)
commit 6f903691505e51e3f7bdea533e27cab36562226a
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Nov 15 18:42:10 2009 -0500
Handle WebKit signal correctly
ChangeLog | 7 +++++++
libbalsa/html.c | 9 +++++----
src/balsa-message.c | 2 --
3 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7a1f757..fa7a345 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-11-15 Peter Bloomfield
+
+ * libbalsa/html.c (lbh_size_request_cb): remove debugging aid;
+ (lbh_navigation_policy_decision_requested_cb): do not handle
+ signal unless it is a real request;
+ (libbalsa_html_new): remove debugging aids.
+
2009-11-12 Pawel Salek
* libbalsa/imap/imap-handle.c: fix a corner case locking problem.
diff --git a/libbalsa/html.c b/libbalsa/html.c
index 1430ea0..c8e6c28 100644
--- a/libbalsa/html.c
+++ b/libbalsa/html.c
@@ -136,11 +136,13 @@ lbh_navigation_policy_decision_requested_cb(WebKitWebView * web_view
const gchar *uri = webkit_network_request_get_uri(request);
(*info->clicked_cb) (uri);
- }
- webkit_web_policy_decision_ignore(decision);
+ webkit_web_policy_decision_ignore(decision);
- return TRUE;
+ return TRUE;
+ }
+
+ return FALSE;
}
/*
@@ -193,7 +195,6 @@ lbh_create_web_view_cb(WebKitWebView * web_view,
return WEBKIT_WEB_VIEW(widget);
}
-
/* Create a new WebKitWebView widget:
* text the HTML source;
* len length of text;
diff --git a/src/balsa-message.c b/src/balsa-message.c
index 659743e..4d009a3 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -2242,8 +2242,6 @@ select_part(BalsaMessage * bm, BalsaPartInfo *info)
(GTK_VIEWPORT(bm->cont_viewport)), 0);
scroll_set(gtk_viewport_get_vadjustment
(GTK_VIEWPORT(bm->cont_viewport)), 0);
-
- gtk_widget_queue_resize(bm->cont_viewport);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]