Merge lp:~dobey/libubuntuone/faster-u1ms-pages into lp:libubuntuone

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: 141
Merged at revision: 140
Proposed branch: lp:~dobey/libubuntuone/faster-u1ms-pages
Merge into: lp:libubuntuone
Diff against target: 37 lines (+8/-3)
1 file modified
libubuntuone/u1-music-store.c (+8/-3)
To merge this branch: bzr merge lp:~dobey/libubuntuone/faster-u1ms-pages
Reviewer Review Type Date Requested Status
Manuel de la Peña (community) Approve
Review via email: mp+79443@code.launchpad.net

Commit message

Stop any current loading pages when a new page is requested externally

To post a comment you must log in.
141. By dobey

Fix typo in comment

Revision history for this message
Manuel de la Peña (mandel) wrote :

Code looks good and I understand the reasoning behind it after talking on irc, will like to test when banshee fixes are done.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'libubuntuone/u1-music-store.c'
--- libubuntuone/u1-music-store.c 2011-10-03 16:50:38 +0000
+++ libubuntuone/u1-music-store.c 2011-10-17 14:36:23 +0000
@@ -1223,9 +1223,6 @@
1223 g_signal_connect (G_OBJECT (music_store->priv->web_viewer), "notify",1223 g_signal_connect (G_OBJECT (music_store->priv->web_viewer), "notify",
1224 G_CALLBACK (viewer_property_changed_cb), music_store);1224 G_CALLBACK (viewer_property_changed_cb), music_store);
12251225
1226 /* And load the real store in the background */
1227 music_store->priv->idle_cb = g_idle_add ((GSourceFunc) load_real_store_cb, music_store);
1228
1229 /* Rescan the purchased music folder */1226 /* Rescan the purchased music folder */
1230 _u1_music_store_rescan_purchased_folder (music_store);1227 _u1_music_store_rescan_purchased_folder (music_store);
12311228
@@ -1353,8 +1350,13 @@
1353 gtk_box_pack_start (GTK_BOX (music_store), music_store->priv->scroll, TRUE, TRUE, 0);1350 gtk_box_pack_start (GTK_BOX (music_store), music_store->priv->scroll, TRUE, TRUE, 0);
1354 gtk_box_pack_end (GTK_BOX (music_store), music_store->priv->progress, FALSE, FALSE, 0);1351 gtk_box_pack_end (GTK_BOX (music_store), music_store->priv->progress, FALSE, FALSE, 0);
13551352
1353 /* Rescan for things later */
1356 g_timeout_add_seconds(10, (GSourceFunc) _u1_music_store_delayed_init,1354 g_timeout_add_seconds(10, (GSourceFunc) _u1_music_store_delayed_init,
1357 music_store);1355 music_store);
1356
1357 /* And load the real store in the background */
1358 music_store->priv->idle_cb = g_idle_add ((GSourceFunc) load_real_store_cb, music_store);
1359
1358}1360}
13591361
1360/**1362/**
@@ -1413,6 +1415,9 @@
1413 g_return_if_fail (U1_IS_MUSIC_STORE (music_store));1415 g_return_if_fail (U1_IS_MUSIC_STORE (music_store));
1414 g_return_if_fail (url != NULL);1416 g_return_if_fail (url != NULL);
14151417
1418 /* Stop any currently pending or active page loads first */
1419 webkit_web_view_stop_loading (WEBKIT_WEB_VIEW (music_store->priv->web_viewer));
1420
1416 /* If the load_real_store callback is set up, disable it first */1421 /* If the load_real_store callback is set up, disable it first */
1417 if (music_store->priv->idle_cb > 0) {1422 if (music_store->priv->idle_cb > 0) {
1418 g_source_remove (music_store->priv->idle_cb);1423 g_source_remove (music_store->priv->idle_cb);

Subscribers

People subscribed via source and target branches