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

Alexandre Grin alexandre.grin at gmail.com
Mon Jun 19 17:00:41 EDT 2006

you're right lots of methods are deprecated, I don't know wich one to use.
I make my menus and menu bar with an xml string, and ActionEntry(s).
It is quite useful and well designed I think.

Here's an very simple example, I hope the code is correct (I'm not a good
programmer I have to admit... but I'm improving!!).
You can compile the code and run it.

Hope this will be useful,


Alex Grin

On 6/19/06, Nestor Alonso Torres <nestor.linux at gmail.com> wrote:
> 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.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20060619/17c7dccd/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Menu.cs
Type: text/x-csharp
Size: 3286 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20060619/17c7dccd/attachment.bin 

More information about the Gtk-sharp-list mailing list