aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-theme-adium.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-09-23 21:31:58 +0800
committerXavier Claessens <xclaesse@gmail.com>2011-09-26 18:33:37 +0800
commit381062d1a807da25f188340cdc81188c43bf0f58 (patch)
tree39e6d7d632e59d8ae255ea672702e9db00c20813 /libempathy-gtk/empathy-theme-adium.c
parent3a459b35bd5b7a29b308d729fe82b203f777b99f (diff)
downloadgsoc2013-empathy-381062d1a807da25f188340cdc81188c43bf0f58.tar
gsoc2013-empathy-381062d1a807da25f188340cdc81188c43bf0f58.tar.gz
gsoc2013-empathy-381062d1a807da25f188340cdc81188c43bf0f58.tar.bz2
gsoc2013-empathy-381062d1a807da25f188340cdc81188c43bf0f58.tar.lz
gsoc2013-empathy-381062d1a807da25f188340cdc81188c43bf0f58.tar.xz
gsoc2013-empathy-381062d1a807da25f188340cdc81188c43bf0f58.tar.zst
gsoc2013-empathy-381062d1a807da25f188340cdc81188c43bf0f58.zip
Add /inspector command to show webkit inspector
Diffstat (limited to 'libempathy-gtk/empathy-theme-adium.c')
-rw-r--r--libempathy-gtk/empathy-theme-adium.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c
index f81329b79..8877a2796 100644
--- a/libempathy-gtk/empathy-theme-adium.c
+++ b/libempathy-gtk/empathy-theme-adium.c
@@ -1654,6 +1654,20 @@ empathy_theme_adium_set_variant (EmpathyThemeAdium *theme,
g_object_notify (G_OBJECT (theme), "variant");
}
+void
+empathy_theme_adium_show_inspector (EmpathyThemeAdium *theme)
+{
+ WebKitWebView *web_view = WEBKIT_WEB_VIEW (theme);
+ WebKitWebInspector *inspector;
+
+ g_object_set (G_OBJECT (webkit_web_view_get_settings (web_view)),
+ "enable-developer-extras", TRUE,
+ NULL);
+
+ inspector = webkit_web_view_get_inspector (web_view);
+ webkit_web_inspector_show (inspector);
+}
+
gboolean
empathy_adium_path_is_valid (const gchar *path)
{