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.

Re: Random Number of Buttons

2006-04-21 Thread James Scott Jr
s my favorite tutorial for treeview in general: http://scentric.net/tutorial/treeview-tutorial.html Here is a link to an complete example using the full GtkTreeView: http://scentric.net/tutorial/sec-treeview-col-pixbufs.html James, > -- > View this message in context: > http://www.n

Re: Random Number of Buttons

2006-04-20 Thread 3saul
on a label I've seen GTKIconView but that seems complicated to me (I'm a beginner) -- View this message in context: http://www.nabble.com/Random-Number-of-Buttons-t1480088.html#a4019004 Sent from the Gtk+ - Apps Dev forum at Nabble.com. ___ gtk

Re: Random Number of Buttons

2006-04-20 Thread 3saul
You've solved my problem once more...and with much laughter! I told you last time I'm a beginner *lol* -- View this message in context: http://www.nabble.com/Random-Number-of-Buttons-t1480088.html#a4006487 Sent from the Gtk+ - Apps Dev forum at

Re: Random Number of Buttons

2006-04-20 Thread John Cupitt
On 4/20/06, 3saul <[EMAIL PROTECTED]> wrote: > I'm wanting to know the best way to declare a random number of buttons for my > gtk app. The number will changed depending on the argument passed to my app. Just use an array of GtkWidget pointers. For example (untested): GtkWidg

Re: Random Number of Buttons

2006-04-20 Thread Christian Neumair
Am Donnerstag, den 20.04.2006, 05:02 -0700 schrieb 3saul: > I'm wanting to know the best way to declare a random number of buttons > for my > gtk app. The number will changed depending on the argument passed to > my app. How do you want to arrange them, and what sh

Re: Random Number of Buttons

2006-04-20 Thread David Necas (Yeti)
On Thu, Apr 20, 2006 at 05:02:48AM -0700, 3saul wrote: > > I'm wanting to know the best way to declare a random number of buttons for my > gtk app. The number will changed depending on the argument passed to my app. GtkWidget **buttons; buttons = g_new(GtkWidget*, n); for (i

Random Number of Buttons

2006-04-20 Thread 3saul
I'm wanting to know the best way to declare a random number of buttons for my gtk app. The number will changed depending on the argument passed to my app. Thanks -- View this message in context: http://www.nabble.com/Random-Number-of-Buttons-t1480088.html#a4005859 Sent from the Gtk+ - App