Mercurial > pidgin
changeset 6280:d330afe3ccf0
[gaim-migrate @ 6779]
Deleting the gtkimhtml in the debug window may have sped up widget
clearing, but it seems that never killed the buffer, so it didn't help
anyway, and leaked a lot of memory. Now it uses gtk_imhtml_clear() again.
Clicking Clear is slow, but that's GtkTextBuffer's fault I think.. testing
some experimental code here. I may commit it in time if it speeds things
up.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 22 Jul 2003 21:11:27 +0000 |
parents | eb6feb00e6f3 |
children | 7c7e14d111bf |
files | src/gtkdebug.c |
diffstat | 1 files changed, 1 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkdebug.c Tue Jul 22 20:37:26 2003 +0000 +++ b/src/gtkdebug.c Tue Jul 22 21:11:27 2003 +0000 @@ -84,16 +84,7 @@ static void clear_cb(GtkWidget *w, DebugWindow *win) { - GtkWidget *parent; - - /* I HATE THIS! It's necessary though... Clearing a GtkTextView is SLOW. */ - parent = gtk_widget_get_parent(win->text); - - gtk_container_remove(GTK_CONTAINER(parent), win->text); - - win->text = gtk_imhtml_new(NULL, NULL); - gtk_container_add(GTK_CONTAINER(parent), win->text); - gtk_widget_show(win->text); + gtk_imhtml_clear(GTK_IMHTML(win->text)); } static void