From 141bafcfd567ec29264784f700573a966351d6ba Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 23 Apr 2009 23:36:40 +0300 Subject: ephy-window: declare variables only if needed. --- src/ephy-window.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src') 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); -- cgit v1.2.3