Esempio n. 1
0
        public void InsertItem(int index, IToolbarBackend item)
        {
            var toolStrip = item.ToGtk() as Gtk.Toolbar;

            toolStrip.ShowArrow = true;
            //toolStrip.ResizeMode = Gtk.ResizeMode.Queue; //deprecated

            //toolStrip.CheckResize ();
            //toolStrip.ShowAll ();
            var w = 0;

            toolStrip.Children.ForEach(c => {
                var r = c.SizeRequest();
                w    += r.Width;
            });

            // this depends on something strange;
            // on cinnamon 8 is needed
            // otherwise 5
            toolStrip.WidthRequest   = w + 8;
            toolStrip.SizeRequested += (s, e) => {
                toolbarSizeRequested(s, e);
            };
            Widget.PackStart(toolStrip, false, false, 0);
        }
 public void RemoveItem(IToolbarBackend backend)
 {
 }
 public void InsertItem(int index, IToolbarBackend backend)
 {
 }
Esempio n. 4
0
 public void RemoveItem(IToolbarBackend item)
 {
     Widget.Remove(item.ToGtk());
 }