[frogr] Fill FrogrAccount with the new information related to video uploads.
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Fill FrogrAccount with the new information related to video uploads.
- Date: Sun, 4 Nov 2012 21:47:37 +0000 (UTC)
commit 03518a1f85b8805fd4d0a6e465772f8a71ec4b3b
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Sat Nov 3 19:18:18 2012 +0100
Fill FrogrAccount with the new information related to video uploads.
src/frogr-controller.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 50a275c..8e1cef3 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -1635,10 +1635,14 @@ _fetch_account_extra_info_cb (GObject *object, GAsyncResult *res, gpointer data)
old_max_bw = frogr_account_get_max_bandwidth (priv->account);
old_is_pro = frogr_account_is_pro (priv->account);
- frogr_account_set_remaining_bandwidth (priv->account,
- upload_status->bw_remaining_kb);
+ frogr_account_set_remaining_bandwidth (priv->account, upload_status->bw_remaining_kb);
frogr_account_set_max_bandwidth (priv->account, upload_status->bw_max_kb);
frogr_account_set_max_photo_filesize (priv->account, upload_status->photo_fs_max_kb);
+
+ frogr_account_set_remaining_videos (priv->account, upload_status->bw_remaining_videos);
+ frogr_account_set_current_videos (priv->account, upload_status->bw_used_videos);
+ frogr_account_set_max_video_filesize (priv->account, upload_status->video_fs_max_kb);
+
frogr_account_set_is_pro (priv->account, upload_status->pro_user);
/* Mark that we received this extra info for the user */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]