From 381062d1a807da25f188340cdc81188c43bf0f58 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 23 Sep 2011 15:31:58 +0200 Subject: Add /inspector command to show webkit inspector --- libempathy-gtk/empathy-theme-adium.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libempathy-gtk/empathy-theme-adium.c') 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) { -- cgit v1.2.3