| 130 webkit_web_view_unmark_text_matches(WEBKIT_WEB_VIEW(lv->web_view)); |
130 webkit_web_view_unmark_text_matches(WEBKIT_WEB_VIEW(lv->web_view)); |
| 131 select_first_log(lv); |
131 select_first_log(lv); |
| 132 return; |
132 return; |
| 133 } |
133 } |
| 134 |
134 |
| 135 if (lv->search != NULL && !strcmp(lv->search, search_term)) |
135 if (lv->search != NULL && purple_strequal(lv->search, search_term)) |
| 136 { |
136 { |
| 137 /* Searching for the same term acts as "Find Next" */ |
137 /* Searching for the same term acts as "Find Next" */ |
| 138 webkit_web_view_search_text(WEBKIT_WEB_VIEW(lv->web_view), lv->search, FALSE, TRUE, TRUE); |
138 webkit_web_view_search_text(WEBKIT_WEB_VIEW(lv->web_view), lv->search, FALSE, TRUE, TRUE); |
| 139 return; |
139 return; |
| 140 } |
140 } |
| 501 PurpleLog *log = logs->data; |
501 PurpleLog *log = logs->data; |
| 502 |
502 |
| 503 month = purple_utf8_strftime(_("%B %Y"), |
503 month = purple_utf8_strftime(_("%B %Y"), |
| 504 log->tm ? log->tm : localtime(&log->time)); |
504 log->tm ? log->tm : localtime(&log->time)); |
| 505 |
505 |
| 506 if (strcmp(month, prev_top_month) != 0) |
506 if (!purple_strequal(month, prev_top_month)) |
| 507 { |
507 { |
| 508 /* top level */ |
508 /* top level */ |
| 509 gtk_tree_store_append(lv->treestore, &toplevel, NULL); |
509 gtk_tree_store_append(lv->treestore, &toplevel, NULL); |
| 510 gtk_tree_store_set(lv->treestore, &toplevel, 0, month, 1, NULL, -1); |
510 gtk_tree_store_set(lv->treestore, &toplevel, 0, month, 1, NULL, -1); |
| 511 |
511 |