Re: Deleting random number of buttons...
- From: Tristan Van Berkom <tvb gnome org>
- To: 3saul <saul_lethbridge hotmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Deleting random number of buttons...
- Date: Wed, 07 Jun 2006 09:13:12 -0400
3saul wrote:
Create code:
GtkWidget **b_buttons;
b_buttons = g_new(GtkWidget*, x);
for (i = 0; i < x && i != x; i++)
{
b_buttons[i] = gtk_button_new();
gtk_widget_show( b_buttons[i] );
gtk_table_attach (GTK_TABLE (table6), b_buttons[i], 0, 1, 0, 1,
(GtkAttachOptions) (0),
(GtkAttachOptions) (0), 0, 0);
And what exactly makes you believe that the buttons are not freed
when the table is destroyed ?
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]