Re: Deleting random number of buttons...



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]