summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiane Trout <diane@ghic.org>2016-04-13 16:46:57 -0700
committerMichael Catanzaro <mcatanzaro@gnome.org>2016-04-14 06:50:39 -0500
commit325a233b0903d50d2f7465e4d13380ac0061ace9 (patch)
treee8033148dd7f43c30237a3e9dbfc96eb61aa4d04
parentcf20f1f6e37d9cc2e863b809f3a4db1c13b8a300 (diff)
downloadempathy-325a233b0903d50d2f7465e4d13380ac0061ace9.tar.gz
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
-rw-r--r--libempathy-gtk/empathy-theme-adium.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index a870702ac..79cbabb9e 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);