[epiphany/gnome-3-26] Add casts required by the new g_object_ref/unref



commit 0968f2cb6a4efbe8427041114a83efab967affec
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 355da72..7a470ab 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]