[epiphany] Wait for name acquisition before we register and emit notifications
- From: Gustavo Noronha Silva <gns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Wait for name acquisition before we register and emit notifications
- Date: Thu, 10 Jul 2014 12:54:22 +0000 (UTC)
commit c66c1d147ce9f08f3f70a6cf1b81b8ba83ff42ef
Author: Gustavo Noronha Silva <gns gnome org>
Date: Wed Jul 9 14:48:34 2014 -0300
Wait for name acquisition before we register and emit notifications
The UI side relies on having the name of the owner to find the extension on
its linked list. If we start emiting signals before that has been acquired,
we will miss page created signals.
https://bugzilla.gnome.org/show_bug.cgi?id=727139
embed/web-extension/ephy-web-extension-main.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension-main.c b/embed/web-extension/ephy-web-extension-main.c
index 2e82cd0..13076bc 100644
--- a/embed/web-extension/ephy-web-extension-main.c
+++ b/embed/web-extension/ephy-web-extension-main.c
@@ -26,9 +26,9 @@
#include "ephy-file-helpers.h"
static void
-bus_acquired_cb (GDBusConnection *connection,
- const char *name,
- EphyWebExtension *extension)
+name_acquired_cb (GDBusConnection *connection,
+ const char *name,
+ EphyWebExtension *extension)
{
ephy_web_extension_dbus_register (extension, connection);
}
@@ -60,8 +60,9 @@ webkit_web_extension_initialize_with_user_data (WebKitWebExtension *extension,
g_bus_own_name (G_BUS_TYPE_SESSION,
service_name,
G_BUS_NAME_OWNER_FLAGS_NONE,
- (GBusNameAcquiredCallback)bus_acquired_cb,
- NULL, NULL,
+ NULL,
+ (GBusNameAcquiredCallback)name_acquired_cb,
+ NULL,
web_extension, NULL);
g_free (service_name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]