[evolution/wip-webkit2] ItipFormatter - Create DOM bindings asynchronously
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip-webkit2] ItipFormatter - Create DOM bindings asynchronously
- Date: Fri, 8 Nov 2013 13:51:14 +0000 (UTC)
commit 4cfdd3f18c87c34e6e6d368b0e7f65cd4f44edb1
Author: Tomas Popela <tpopela redhat com>
Date: Fri Nov 8 14:17:41 2013 +0100
ItipFormatter - Create DOM bindings asynchronously
modules/itip-formatter/itip-view.c | 52 ++++++++++++++++--------------------
1 files changed, 23 insertions(+), 29 deletions(-)
---
diff --git a/modules/itip-formatter/itip-view.c b/modules/itip-formatter/itip-view.c
index c038d2a..c0b2d8c 100644
--- a/modules/itip-formatter/itip-view.c
+++ b/modules/itip-formatter/itip-view.c
@@ -1781,38 +1781,32 @@ void
itip_view_create_dom_bindings (ItipView *view,
const gchar *element_id)
{
- GVariant *result;
-
if (!view->priv->web_extension)
return;
- result = g_dbus_proxy_call_sync (
- view->priv->web_extension,
- "SaveDocumentFromElement",
- g_variant_new (
- "(ts)",
- webkit_web_view_get_page_id (
- WEBKIT_WEB_VIEW (view)),
- element_id),
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- NULL,
- NULL);
-
- if (result)
- g_variant_unref (result);
-
- result = g_dbus_proxy_call_sync (
- view->priv->web_extension,
- "CreateDOMBindings",
- NULL,
- G_DBUS_CALL_FLAGS_NONE,
- -1,
- NULL,
- NULL);
+ g_dbus_proxy_call (
+ view->priv->web_extension,
+ "SaveDocumentFromElement",
+ g_variant_new (
+ "(ts)",
+ webkit_web_view_get_page_id (
+ WEBKIT_WEB_VIEW (view)),
+ element_id),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ NULL,
+ NULL,
+ NULL);
- if (result)
- g_variant_unref (result);
+ g_dbus_proxy_call (
+ view->priv->web_extension,
+ "CreateDOMBindings",
+ NULL,
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ NULL,
+ NULL,
+ NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]