[Gtk-sharp-list] Making a Toolbar, the right way...

Nestor Alonso Torres nestor.linux at gmail.com
Mon Jun 19 13:26:59 EDT 2006


Hi there!!!

I' ve tried to make a toolbar for an application, using gtk#, but I'
ve read in the documentation that AppendWidget is deprecated. I'm
using the following code:

               Toolbar t = new Toolbar ();
		Gtk.Button b1 = new Button(Stock.Add);
		
		t.AppendWidget (b1, "Add", "");
		
		b2 = new Button(Stock.Find);
		t.AppendWidget (b2, "Find", "");
		
		
		vbox.PackEnd(t, false, false, 10 );

I'd also like to make it looks "Windows like", I mean, no text in the
right side of the icon.

What's the correct way to do this?

Cheers,

Eng. Nestor Alonso Torres CM3NA
Linux User #349581
CUJAE, Havana, Cuba.


More information about the Gtk-sharp-list mailing list