[epiphany] ephy-window: declare variables only if needed.



commit 141bafcfd567ec29264784f700573a966351d6ba
Author: Xan Lopez <xan gnome org>
Date:   Thu Apr 23 23:36:40 2009 +0300

    ephy-window: declare variables only if needed.
---
 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 3aa7b65..5d7babc 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]