[empathy] webkit_dom_html_element_get_class_name is deprecated



commit 325a233b0903d50d2f7465e4d13380ac0061ace9
Author: Diane Trout <diane ghic org>
Date:   Wed Apr 13 16:46:57 2016 -0700

    webkit_dom_html_element_get_class_name is deprecated
    
    Migrate to its replacement webkit_dom_element_get_class_name.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765024

 libempathy-gtk/empathy-theme-adium.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index a870702..79cbabb 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -772,7 +772,7 @@ theme_adium_remove_focus_marks (EmpathyThemeAdium *self,
   for (i = 0; i < webkit_dom_node_list_get_length (nodes); i++)
     {
       WebKitDOMNode *node = webkit_dom_node_list_item (nodes, i);
-      WebKitDOMHTMLElement *element = WEBKIT_DOM_HTML_ELEMENT (node);
+      WebKitDOMElement *element = WEBKIT_DOM_ELEMENT (node);
       gchar *class_name;
       gchar **classes, **iter;
       GString *new_class_name;
@@ -781,7 +781,7 @@ theme_adium_remove_focus_marks (EmpathyThemeAdium *self,
       if (element == NULL)
         continue;
 
-      class_name = webkit_dom_html_element_get_class_name (element);
+      class_name = webkit_dom_element_get_class_name (element);
       classes = g_strsplit (class_name, " ", -1);
       new_class_name = g_string_sized_new (strlen (class_name));
 
@@ -798,7 +798,7 @@ theme_adium_remove_focus_marks (EmpathyThemeAdium *self,
             }
         }
 
-      webkit_dom_html_element_set_class_name (element, new_class_name->str);
+      webkit_dom_element_set_class_name (element, new_class_name->str);
 
       g_free (class_name);
       g_strfreev (classes);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]