[frogr] Don't retrieve the main view's model until needed.
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Don't retrieve the main view's model until needed.
- Date: Mon, 15 Aug 2011 13:36:12 +0000 (UTC)
commit de737697ec2a03fd2d82ff209ddf14eb530d257b
Author: Mario Sanchez Prada <msanchez igalia com>
Date: Mon Aug 15 15:32:31 2011 +0200
Don't retrieve the main view's model until needed.
src/frogr-controller.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 8f7d531..a314650 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -1192,7 +1192,6 @@ _on_picture_loaded (FrogrController *self, FrogrPicture *picture)
g_return_val_if_fail (FROGR_IS_PICTURE (picture), FALSE);
priv = FROGR_CONTROLLER_GET_PRIVATE (self);
- mainview_model = frogr_main_view_get_model (priv->mainview);
/* We need this info if account info was already fetched. */
if (priv->account && priv->account_extra_info_fetched)
@@ -1222,6 +1221,7 @@ _on_picture_loaded (FrogrController *self, FrogrPicture *picture)
return FALSE;
}
+ mainview_model = frogr_main_view_get_model (priv->mainview);
frogr_main_view_model_add_picture (mainview_model, picture);
g_signal_emit (self, signals[PICTURE_LOADED], 0, picture);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]