Re: Deleting random number of buttons...

2006-06-07 Thread Tristan Van Berkom
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],

Re: Deleting random number of buttons...

2006-06-06 Thread 3saul
0, 1, 0, 1, (GtkAttachOptions) (0), (GtkAttachOptions) (0), 0, 0); -- View this message in context: http://www.nabble.com/Deleting-random-number-of-buttons...-t1745565.html#a4745484 Sent from the Gtk+ - Apps Dev forum at

Re: Deleting random number of buttons...

2006-06-06 Thread Tristan Van Berkom
3saul wrote: Sorry I made a mistake...I'm actually attaching them to a table, no containers involved. I've tried destroying and recreating the table they're attached too but it doesn't seem to destroy the buttons! Well they should be destroyed (a table is a container by the way)... how are

Re: Deleting random number of buttons...

2006-06-06 Thread 3saul
Sorry I made a mistake...I'm actually attaching them to a table, no containers involved. I've tried destroying and recreating the table they're attached too but it doesn't seem to destroy the buttons! -- View this message in context: http://www.nabble.com/Deleting-rand

Re: Deleting random number of buttons...

2006-06-06 Thread Tristan Van Berkom
3saul wrote: I'm creating some buttons like this GtkWidget ** add_buttons( GtkWidget *parent, int n ) { GtkWidget **buttons = g_new( GtkWidget *, n ); for( i = 0; i < n ; i++ ) { char label[256]; snprintf( label, 256, "button %d", i ); buttons[i] = gtk_button_new_with_label( label

Deleting random number of buttons...

2006-06-06 Thread 3saul
_with_label( label ); gtk_contaner_add( GTK_CONTAINER( parent ), buttons[i] ); gtk_widget_show( buttons[i] ); } return( buttons ); } How can I delete this buttons once they're created? -- View this message in context: http://www.nabble.com/Deleting-random-number-of-buttons...-t1745565.