src/gtksavedstatuses.c

changeset 13195
628d1077a0ba
parent 13194
61b4e7bfc328
child 13200
3769f413f073
--- a/src/gtksavedstatuses.c	Wed Feb 08 23:53:26 2006 +0000
+++ b/src/gtksavedstatuses.c	Thu Feb 09 00:00:08 2006 +0000
@@ -1392,7 +1392,7 @@
 	GtkWidget *win;
 	GtkTreeIter iter;
 	GtkCellRenderer *rend;
-	const char *id = NULL;
+	const char *status_id = NULL;
 	const GList *list;
 	gboolean select = FALSE;
 
@@ -1524,8 +1524,9 @@
 			gtk_imhtml_append_text(dialog->message,
 								   gaim_savedstatus_substatus_get_message(substatus),
 								   0);
-			id = gaim_status_type_get_id(gaim_savedstatus_substatus_get_type(substatus));
+			status_id = gaim_status_type_get_id(gaim_savedstatus_substatus_get_type(substatus));
 		}
+		/* TODO: Else get the generic status type from our parent */
 	}
 
 	for (list = gaim_account_get_status_types(account); list; list = list->next)
@@ -1552,7 +1553,7 @@
 						   -1);
 		if (pixbuf != NULL)
 			g_object_unref(pixbuf);
-		if (id && !strcmp(id, gaim_status_type_get_id(status_type)))
+		if ((status_id != NULL) && !strcmp(status_id, id))
 		{
 			gtk_combo_box_set_active_iter(GTK_COMBO_BOX(combo), &iter);
 			select = TRUE;

mercurial