Mercurial > pidgin
changeset 10680:dcbbad970e0d
[gaim-migrate @ 12226]
sf patch #1159278, from the esteemed Richard Laager
Code duplication fix.
And I got to it before Luke assigned it to someone! What do I win?!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 10 Mar 2005 23:44:16 +0000 |
parents | dbdf6618cc49 |
children | d29fae081061 |
files | src/gtklog.c |
diffstat | 1 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtklog.c Thu Mar 10 22:57:59 2005 +0000 +++ b/src/gtklog.c Thu Mar 10 23:44:16 2005 +0000 @@ -265,15 +265,12 @@ gtk_tree_store_append(lv->treestore, &toplevel, NULL); gtk_tree_store_set(lv->treestore, &toplevel, 0, month, 1, NULL, -1); - /* sub */ - gtk_tree_store_append(lv->treestore, &child, &toplevel); - gtk_tree_store_set(lv->treestore, &child, 0, title, 1, log, -1); + strncpy(prev_top_month, month, sizeof(prev_top_month)); + } - strncpy(prev_top_month, month, sizeof(prev_top_month)); - } else { - gtk_tree_store_append(lv->treestore, &child, &toplevel); - gtk_tree_store_set(lv->treestore, &child, 0, title, 1, log, -1); - } + /* sub */ + gtk_tree_store_append(lv->treestore, &child, &toplevel); + gtk_tree_store_set(lv->treestore, &child, 0, title, 1, log, -1); logs = logs->next; }