[epiphany] Add casts required by the new g_object_ref/unref
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Add casts required by the new g_object_ref/unref
- Date: Sat, 9 Dec 2017 18:39:27 +0000 (UTC)
commit 6afb7957d82a7f43456e082c4ca93d7a25b8e552
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Dec 9 12:38:07 2017 -0600
Add casts required by the new g_object_ref/unref
embed/ephy-embed.c | 2 +-
embed/web-extension/ephy-web-dom-utils.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 88ce8f7..563f736 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -980,6 +980,6 @@ ephy_embed_detach_notification_container (EphyEmbed *embed)
* notification widget, removing it from the container will destroy the
* singleton. To prevent this, add a reference to it before removing it
* from the container. */
- gtk_container_remove (GTK_CONTAINER (embed->overlay), g_object_ref (container));
+ gtk_container_remove (GTK_CONTAINER (embed->overlay), g_object_ref (GTK_WIDGET (container)));
}
}
diff --git a/embed/web-extension/ephy-web-dom-utils.c b/embed/web-extension/ephy-web-dom-utils.c
index d57dea7..dc58a43 100644
--- a/embed/web-extension/ephy-web-dom-utils.c
+++ b/embed/web-extension/ephy-web-dom-utils.c
@@ -584,7 +584,7 @@ ephy_web_dom_utils_find_form_auth_elements (WebKitDOMHTMLFormElement *form,
g_strcmp0 (element_type, "tel") == 0 ||
g_strcmp0 (element_type, "url") == 0 ||
g_strcmp0 (element_type, "number") == 0) {
- username_node = g_object_ref (element);
+ username_node = g_object_ref (WEBKIT_DOM_HTML_INPUT_ELEMENT (element));
g_free (element_type);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]