Mercurial > pidgin
comparison src/gtkconv.c @ 4571:51e988d015ed
[gaim-migrate @ 4852]
I don't know if this is gtk's problem or my (our?) misunderstanding of
GtkNotebook, but it seems pages that are deleted aren't destroying the
child widgets, so we're doing that manually now. It should free up a LOT
of memory, and since this is how the old code did it (I think), it should
explain the large memory leaks people used to report.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 11 Feb 2003 17:26:16 +0000 |
parents | 9df99116840a |
children | 06084165a966 |
comparison
equal
deleted
inserted
replaced
4570:67a373071933 | 4571:51e988d015ed |
---|---|
3395 gtk_button_set_relief(GTK_BUTTON(gtkconv->close), GTK_RELIEF_NONE); | 3395 gtk_button_set_relief(GTK_BUTTON(gtkconv->close), GTK_RELIEF_NONE); |
3396 gtk_tooltips_set_tip(gtkconv->tooltips, gtkconv->close, | 3396 gtk_tooltips_set_tip(gtkconv->tooltips, gtkconv->close, |
3397 _("Close conversation"), NULL); | 3397 _("Close conversation"), NULL); |
3398 | 3398 |
3399 g_signal_connect(G_OBJECT(gtkconv->close), "clicked", | 3399 g_signal_connect(G_OBJECT(gtkconv->close), "clicked", |
3400 G_CALLBACK(close_conv_cb), conv); | 3400 G_CALLBACK(close_conv_cb), conv); |
3401 | 3401 |
3402 /* Tab label. */ | 3402 /* Tab label. */ |
3403 gtkconv->tab_label = gtk_label_new(gaim_conversation_get_title(conv)); | 3403 gtkconv->tab_label = gtk_label_new(gaim_conversation_get_title(conv)); |
3404 #if 0 | 3404 #if 0 |
3405 gtk_misc_set_alignment(GTK_MISC(gtkconv->tab_label), 0.00, 0.5); | 3405 gtk_misc_set_alignment(GTK_MISC(gtkconv->tab_label), 0.00, 0.5); |
3588 gtk_widget_destroy(gtkconv->dialogs.link); | 3588 gtk_widget_destroy(gtkconv->dialogs.link); |
3589 | 3589 |
3590 if (gtkconv->dialogs.log != NULL) | 3590 if (gtkconv->dialogs.log != NULL) |
3591 gtk_widget_destroy(gtkconv->dialogs.log); | 3591 gtk_widget_destroy(gtkconv->dialogs.log); |
3592 | 3592 |
3593 gtk_widget_destroy(gtkconv->tab_cont); | |
3594 | |
3593 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { | 3595 if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) { |
3594 if (gtkconv->u.im->save_icon != NULL) | 3596 if (gtkconv->u.im->save_icon != NULL) |
3595 gtk_widget_destroy(gtkconv->u.im->save_icon); | 3597 gtk_widget_destroy(gtkconv->u.im->save_icon); |
3596 | 3598 |
3597 if (gtkconv->u.im->anim != NULL) | 3599 if (gtkconv->u.im->anim != NULL) |