Deleting random number of buttons...
- From: 3saul <saul_lethbridge hotmail com>
- To: gtk-app-devel-list gnome org
- Subject: Deleting random number of buttons...
- Date: Tue, 6 Jun 2006 20:14:46 -0700 (PDT)
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 );
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.html#a4744787
Sent from the Gtk+ - Apps Dev forum at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]