Mercurial > pidgin
changeset 13194:7099a443131d
[gaim-migrate @ 15557]
The other half of sf patch #1414103, from Sadrul Habib Chowdhury
"Make the initial selection in the substatus-
edit dialog correct (currently it always opens with the
last status in the list selected)."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Feb 2006 00:00:08 +0000 |
parents | 3426bc61bb8b |
children | c242836ff793 |
files | src/gtksavedstatuses.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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;