[Gtk-sharp-list] Toolbar Space
Daniel Morgan
danielmorgan at verizon.net
Wed Jun 29 18:38:20 EDT 2005
Use SeparatorToolItem as a space between buttons in a toolbar.
Example:
Toolbar toolbar = new Toolbar ();
toolbar.ToolbarStyle = ToolbarStyle.Icons;
Tooltips tooltips1 = new Tooltips ();
ToolButton button1 = new Gtk.ToolButton (Stock.New);
button1.SetTooltip (tooltips1, "New", "New");
button1.Clicked += new EventHandler(OnToolbar_FileNew);
toolbar.Insert (button1, -1);
SeparatorToolItem sep = new SeparatorToolItem ();
toolbar.Insert (sep, -1);
Tooltips tooltips5 = new Tooltips ();
ToolButton button5 = new ToolButton (Stock.Execute);
button5.SetTooltip (tooltips5, "Execute Command", "Execute
Command");
button5.Clicked += new EventHandler(OnToolbar_ExecuteCommand);
toolbar.Insert (button5, -1);
I'm not sure why the Tooltips do not work though.
Milen Dzhumerov wrote:
>Hi list,
>
>I want to ask what's the non-deprecated way to insert a space in a
>toolbar? From the docs for > 1.9.x nearly all methods are deprecated,
>except Insert which works great, but I couldn't find a working method
>for adding a space. Any advice is greatly appreciated.
>
>Regards
>
>
More information about the Gtk-sharp-list
mailing list