comparison src/gtkdebug.c @ 5214:7ea282e1f615

[gaim-migrate @ 5584] The category type is now prepended on debug output to the terminal. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 26 Apr 2003 07:17:10 +0000
parents 740303e8425b
children 49f0de976037
comparison
equal deleted inserted replaced
5213:1cf4eb75e3ee 5214:7ea282e1f615
148 g_free(cat_s); 148 g_free(cat_s);
149 149
150 gtk_imhtml_append_text(GTK_IMHTML(debug_win->entry), s, -1, 0); 150 gtk_imhtml_append_text(GTK_IMHTML(debug_win->entry), s, -1, 0);
151 151
152 g_free(s); 152 g_free(s);
153
154 #if 0
155 GtkTextBuffer *buffer;
156 GtkTextMark *endmark;
157 GtkTextIter end;
158
159 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(debug_win->entry));
160 endmark = gtk_text_buffer_get_mark(buffer, "end");
161
162 gtk_text_buffer_get_iter_at_mark(buffer, &end, endmark);
163 gtk_text_buffer_insert_with_tags(buffer, &end, s, -1);
164
165 gtk_text_view_scroll_mark_onscreen(GTK_TEXT_VIEW(debug_win->entry),
166 endmark);
167 #endif
168 } 153 }
169 154
170 if (opt_debug) 155 if (opt_debug) {
171 g_print("%s", arg_s); 156 if (category == NULL)
157 g_print("%s", arg_s);
158 else
159 g_print("%s: %s", arg_s);
160 }
172 161
173 g_free(arg_s); 162 g_free(arg_s);
174 } 163 }
175 164
176 static GaimDebugUiOps ops = 165 static GaimDebugUiOps ops =