cpw.nader.asynclogging-3: 3a7e85c0: Copied over the fix for the progress bar...

morshed.nader at gmail.com morshed.nader at gmail.com
Sun Jan 8 01:21:08 EST 2012


----------------------------------------------------------------------
Revision: 3a7e85c07b3edd7595e47a2b92ae924ac65467ec
Parent:   7f9799a0c2b1ce68b6066487a8ac6985ac6ddb67
Author:   morshed.nader at gmail.com
Date:     01/07/12 17:03:16
Branch:   im.pidgin.cpw.nader.asynclogging-3
URL: http://d.pidgin.im/viewmtn/revision/info/3a7e85c07b3edd7595e47a2b92ae924ac65467ec

Changelog: 

Copied over the fix for the progress bar stuff to the gnt log viewer

Changes against parent 7f9799a0c2b1ce68b6066487a8ac6985ac6ddb67

  patched  finch/gntlog.c

-------------- next part --------------
============================================================
--- finch/gntlog.c	ca7b49a6e5f4df646926ac57f44f8b449117252e
+++ finch/gntlog.c	1dbed088789a33d619367df701952126e4dec214
@@ -270,7 +270,6 @@ search_cb(GntWidget *button, FinchLogVie
 	GCancellable *cancel;
 	GList *logs, *account, *name;
 	const gchar *search_term, *old_search;
-	guint length;
 
 	search_term = gnt_entry_get_text(GNT_ENTRY(priv->entry));
 
@@ -292,9 +291,8 @@ search_cb(GntWidget *button, FinchLogVie
 		return;
 
 	logs = finch_log_viewer_get_logs(lv);
-	length = g_list_length(logs);
 
-	if (length < 1)
+	if (g_list_length(logs) < 1)
 		return;
 
 	finch_log_viewer_set_search_string(lv, search_term);
@@ -305,7 +303,7 @@ search_cb(GntWidget *button, FinchLogVie
 	data->is_window_open = TRUE;
 	data->log_viewer = lv;
 	data->string = g_strdup(search_term);
-	data->count = data->total = length;
+	data->count = data->total = 0;
 	data->destroy_handler_id = g_signal_connect_swapped(lv,
 		"destroy", G_CALLBACK(finch_window_destroy_cb), data);
 
@@ -326,6 +324,7 @@ search_cb(GntWidget *button, FinchLogVie
 			name = g_list_next(name);
 		}
 
+		data->count = (data->total += 1);
 		purple_logs_search_async(priv->chat_type, name_str, account->data,
 			search_term, G_PRIORITY_DEFAULT_IDLE, cancel, finch_log_search_cb,
 			data);


More information about the Commits mailing list