comparison src/gtklog.c @ 7537:083427fd8ba8

[gaim-migrate @ 8150] Compile gtklog.c with less warnings. The GTK_HTML() macro is a good thing to use when the function wants a GtkIMHtml. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 17 Nov 2003 06:44:05 +0000
parents f771759739c1
children 5c5acdf8b982
comparison
equal deleted inserted replaced
7536:41ba5e3b2844 7537:083427fd8ba8
3 * @ingroup gtkui 3 * @ingroup gtkui
4 * 4 *
5 * gaim 5 * gaim
6 * 6 *
7 * Copyright (C) 2003 Error of Ruto 7 * Copyright (C) 2003 Error of Ruto
8 * 8 *
9 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or 11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version. 12 * (at your option) any later version.
13 * 13 *
73 73
74 gtk_tree_store_clear(lv->treestore); 74 gtk_tree_store_clear(lv->treestore);
75 if (strlen(search_term) == 0) {/* reset the tree */ 75 if (strlen(search_term) == 0) {/* reset the tree */
76 populate_log_tree(lv); 76 populate_log_tree(lv);
77 lv->search = NULL; 77 lv->search = NULL;
78 gtk_imhtml_search_clear(lv->imhtml); 78 gtk_imhtml_search_clear(GTK_IMHTML(lv->imhtml));
79 return; 79 return;
80 } 80 }
81 81
82 lv->search = g_strdup(search_term); 82 lv->search = g_strdup(search_term);
83 83
158 gtk_imhtml_append_text(GTK_IMHTML(viewer->imhtml), read, 158 gtk_imhtml_append_text(GTK_IMHTML(viewer->imhtml), read,
159 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_TITLE | GTK_IMHTML_NO_SCROLL | 159 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_TITLE | GTK_IMHTML_NO_SCROLL |
160 ((flags & GAIM_LOG_READ_NO_NEWLINE) ? GTK_IMHTML_NO_NEWLINE : 0)); 160 ((flags & GAIM_LOG_READ_NO_NEWLINE) ? GTK_IMHTML_NO_NEWLINE : 0));
161 161
162 if (viewer->search) 162 if (viewer->search)
163 gtk_imhtml_search_find(viewer->imhtml, viewer->search); 163 gtk_imhtml_search_find(GTK_IMHTML(viewer->imhtml), viewer->search);
164 164
165 g_free(read); 165 g_free(read);
166 g_free(title); 166 g_free(title);
167 } 167 }
168 168