diff options
author | Xan Lopez <xan@gnome.org> | 2009-04-24 04:36:40 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-04-24 04:37:54 +0800 |
commit | 141bafcfd567ec29264784f700573a966351d6ba (patch) | |
tree | fa344846f3014b24a737b9e64b328a4a87a59257 | |
parent | eacd5c0fcb4b25024e2029e029af5b399887b805 (diff) | |
download | gsoc2013-epiphany-141bafcfd567ec29264784f700573a966351d6ba.tar.gz gsoc2013-epiphany-141bafcfd567ec29264784f700573a966351d6ba.tar.zst gsoc2013-epiphany-141bafcfd567ec29264784f700573a966351d6ba.zip |
ephy-window: declare variables only if needed.
-rw-r--r-- | src/ephy-window.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 3aa7b652b..5d7babc60 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -2445,23 +2445,22 @@ static gboolean web_view_ready_cb (WebKitWebView *web_view, gpointer user_data) { - WebKitWebWindowFeatures *features; EphyWindow *window; - int width, height; - - gboolean toolbar_visible; - gboolean statusbar_visible; - gboolean menubar_visible; gboolean using_new_window; - EphyEmbedChrome chrome_mask; - using_new_window = GPOINTER_TO_INT (user_data); window = EPHY_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (web_view))); if (using_new_window) { + int width, height; + gboolean toolbar_visible; + gboolean statusbar_visible; + gboolean menubar_visible; + EphyEmbedChrome chrome_mask; + WebKitWebWindowFeatures *features; + toolbar_visible = statusbar_visible = menubar_visible = TRUE; features = webkit_web_view_get_window_features (web_view); |