Mercurial > pidgin
comparison src/gtklog.c @ 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 | 5fae2e790f5d |
children | 5cda52915a1f |
comparison
equal
deleted
inserted
replaced
10679:dbdf6618cc49 | 10680:dcbbad970e0d |
---|---|
263 if (strncmp(month, prev_top_month, sizeof(month)) != 0) { | 263 if (strncmp(month, prev_top_month, sizeof(month)) != 0) { |
264 /* top level */ | 264 /* top level */ |
265 gtk_tree_store_append(lv->treestore, &toplevel, NULL); | 265 gtk_tree_store_append(lv->treestore, &toplevel, NULL); |
266 gtk_tree_store_set(lv->treestore, &toplevel, 0, month, 1, NULL, -1); | 266 gtk_tree_store_set(lv->treestore, &toplevel, 0, month, 1, NULL, -1); |
267 | 267 |
268 /* sub */ | |
269 gtk_tree_store_append(lv->treestore, &child, &toplevel); | |
270 gtk_tree_store_set(lv->treestore, &child, 0, title, 1, log, -1); | |
271 | |
272 strncpy(prev_top_month, month, sizeof(prev_top_month)); | 268 strncpy(prev_top_month, month, sizeof(prev_top_month)); |
273 } else { | |
274 gtk_tree_store_append(lv->treestore, &child, &toplevel); | |
275 gtk_tree_store_set(lv->treestore, &child, 0, title, 1, log, -1); | |
276 } | 269 } |
270 | |
271 /* sub */ | |
272 gtk_tree_store_append(lv->treestore, &child, &toplevel); | |
273 gtk_tree_store_set(lv->treestore, &child, 0, title, 1, log, -1); | |
277 | 274 |
278 logs = logs->next; | 275 logs = logs->next; |
279 } | 276 } |
280 } | 277 } |
281 | 278 |