[phonemgr] ui: move allocations closer to their first use



commit 35b98fd76d996f0e3223aa9bb2a52b0985d63425
Author: Daniele Forsi <dforsi src gnome org>
Date:   Mon Apr 30 17:07:22 2012 +0200

    ui: move allocations closer to their first use

 src/ui.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ui.c b/src/ui.c
index bacef21..e64f68b 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -396,8 +396,6 @@ ui_init (MyApp *app)
 	GtkWidget *ep = e_phone_entry_new ();
 
 	app->ui = get_ui (app, NULL);
-	bridge = gconf_bridge_get ();
-
 	if (!app->ui)
 		g_error ("Couldn't load user interface.");
 
@@ -426,6 +424,8 @@ ui_init (MyApp *app)
 	S_CONNECT("otherport", CONNECTION_OTHER);
 
 	/* Connect a few toggle buttons */
+	bridge = gconf_bridge_get ();
+
 	gconf_bridge_bind_property (bridge,
 				    CONFBASE"/auto_retry",
 				    G_OBJECT (gtk_builder_get_object (app->ui, "auto_retry")),



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