GtkImage and GtkTextBuffer and memory
- From: Marcin Krzyzanowski <krzak linux net pl>
- To: gtk-list gnome org
- Subject: GtkImage and GtkTextBuffer and memory
- Date: Wed, 27 Nov 2002 13:17:11 +0100
Hi,
first portion of code :
----
GtkWidget *widget = gtk_image_new_from_file(filename);
GtkTextChildAnchor *anchor =
gtk_text_buffer_create_child_anchor(buf,&istart);
GtkTextBuffer *buf = gtk_text_view_get_buffer( GTK_TEXT_VIEW(history) );
gtk_text_view_add_child_at_anchor( GTK_TEXT_VIEW(history), widget,
anchor);
gtk_widget_show( widget );
-----
Now.
when i destroy parent widget window (because it is in window), memory
taken by "widget" (image) do not free,
How should I free that memory ?
--
Marcin Krzyzanowski
www : http://krzak.linux.net.pl
email : krzak linux net pl , krzak hakore com
IRC : [krzyzak] @#linuxnews @#zdrowo_jebnieci
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]