im.pidgin.pidgin: df81d122928e469dcce201911c13410548a3c450

sadrul at pidgin.im sadrul at pidgin.im
Fri Oct 12 17:35:37 EDT 2007


-----------------------------------------------------------------
Revision: df81d122928e469dcce201911c13410548a3c450
Ancestor: c65c3b20fd479ca10b78b907856779e4970ecc76
Author: sadrul at pidgin.im
Date: 2007-10-12T21:39:31
Branch: im.pidgin.pidgin

Modified files:
        finch/gntnotify.c

ChangeLog: 

Fix the searchresult thingy nosnilmot fixed in pidgin.
(re: 1b3703e5ff3c0f274efc9a1dafdcf940ef9acd72)

-------------- next part --------------
============================================================
--- finch/gntnotify.c	5835deb3ac1dcffa32e864842acfd304b2949770
+++ finch/gntnotify.c	b3b07028152c3e874057953d1d91e865d623c47f
@@ -194,6 +194,7 @@ finch_notify_emails(PurpleConnection *gc
 	PurpleAccount *account = purple_connection_get_account(gc);
 	GString *message = g_string_new(NULL);
 	void *ret;
+	static int key = 0;
 
 	if (!detailed)
 	{
@@ -212,7 +213,7 @@ finch_notify_emails(PurpleConnection *gc
 
 		to = g_strdup_printf("%s (%s)", tos ? *tos : purple_account_get_username(account),
 					purple_account_get_protocol_name(account));
-		gnt_tree_add_row_after(GNT_TREE(emaildialog.tree), GINT_TO_POINTER(time(NULL)),
+		gnt_tree_add_row_after(GNT_TREE(emaildialog.tree), GINT_TO_POINTER(++key),
 				gnt_tree_create_row(GNT_TREE(emaildialog.tree), to,
 					froms ? *froms : "[Unknown sender]",
 					*subjects),
@@ -360,7 +361,8 @@ finch_notify_searchresults(PurpleConnect
 	i = 0;
 	for (iter = results->columns; iter; iter = iter->next)
 	{
-		gnt_tree_set_column_title(GNT_TREE(tree), i, iter->data);
+		PurpleNotifySearchColumn *column = iter->data;
+		gnt_tree_set_column_title(GNT_TREE(tree), i, column->title);
 		i++;
 	}
 


More information about the Commits mailing list