changeset 20905:38ee359ea4aa

Fix pidgin_notify_searchresults to use the actual title for column headers, instead of a pointer to a struct that contains the title. Pango didn't like us doing that.
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 12 Oct 2007 18:11:22 +0000
parents 73bb2ab128a4
children ca17720fabb1
files pidgin/gtknotify.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtknotify.c	Fri Oct 12 17:00:13 2007 +0000
+++ b/pidgin/gtknotify.c	Fri Oct 12 18:11:22 2007 +0000
@@ -740,7 +740,7 @@
 	GtkListStore *model;
 	GtkCellRenderer *renderer;
 	guint col_num;
-	GList *column;
+	GList *columniter;
 	guint i;
 
 	GtkWidget *vbox;
@@ -824,11 +824,12 @@
 					-1, "", renderer, "pixbuf", 0, NULL);
 
 	i = 1;
-	for (column = results->columns; column != NULL; column = column->next) {
+	for (columniter = results->columns; columniter != NULL; columniter = columniter->next) {
+		PurpleNotifySearchColumn *column = columniter->data;
 		renderer = gtk_cell_renderer_text_new();
 
 		gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(treeview), -1,
-				column->data, renderer, "text", i, NULL);
+				column->title, renderer, "text", i, NULL);
 		i++;
 	}