[totem] Bug 602497 — Progress bar doesn't stop if there are no search results
- From: Philip Withnall <pwithnall src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem] Bug 602497 — Progress bar doesn't stop if there are no search results
- Date: Sat, 21 Nov 2009 20:50:14 +0000 (UTC)
commit 19e811da24496f44dbc25812aff666497bc782b0
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Nov 21 20:48:42 2009 +0000
Bug 602497 â?? Progress bar doesn't stop if there are no search results
Ensure the YouTube progress bar stops once a search is finished, even
if there are no results. Closes: bgo#602497
src/plugins/youtube/totem-youtube.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/youtube/totem-youtube.c b/src/plugins/youtube/totem-youtube.c
index 9836749..08c34d5 100644
--- a/src/plugins/youtube/totem-youtube.c
+++ b/src/plugins/youtube/totem-youtube.c
@@ -673,13 +673,14 @@ query_finished_cb (GObject *source_object, GAsyncResult *result, QueryData *data
g_debug ("Search finished!");
feed = gdata_service_query_finish (GDATA_SERVICE (self->service), result, &error);
+
+ /* Stop the progress bar; a little hacky, but it works */
+ self->progress_bar_increment[data->tree_view] = 1.0;
+ increment_progress_bar_fraction (self, data->tree_view);
+
if (feed == NULL) {
GtkWindow *window;
- /* Stop the progress bar; a little hacky, but it works */
- self->progress_bar_increment[data->tree_view] = 1.0;
- increment_progress_bar_fraction (self, data->tree_view);
-
/* Bail out if the operation was cancelled */
if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) == TRUE) {
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]