예제 #1
0
        private void BuildFooter()
        {
            footer_toolbar = new HBox()
            {
                BorderWidth = 2
            };

            Widget task_status = new Banshee.Gui.Widgets.TaskStatusIcon();

            EventBox status_event_box = new EventBox();

            status_event_box.ButtonPressEvent += OnStatusBoxButtonPress;

            status_label = new Label();
            status_event_box.Add(status_label);

            HBox status_hbox = new HBox(true, 0);

            status_hbox.PackStart(status_event_box, false, false, 0);

            Alignment status_align = new Alignment(0.5f, 0.5f, 1.0f, 1.0f);

            status_align.Add(status_hbox);

            RepeatActionButton repeat_button = new RepeatActionButton();

            repeat_button.SizeAllocated += delegate(object o, Gtk.SizeAllocatedArgs args) {
                status_align.LeftPadding = (uint)args.Allocation.Width;
            };

            footer_toolbar.PackStart(task_status, false, false, 0);
            footer_toolbar.PackStart(status_align, true, true, 0);
            footer_toolbar.PackStart(repeat_button, false, false, 0);

            footer_toolbar.ShowAll();
            primary_vbox.PackStart(footer_toolbar, false, true, 0);
        }
예제 #2
0
        private void BuildFooter ()
        {
            if (PlatformDetection.IsMeeGo) {
                return;
            }

            footer_toolbar = new HBox () { BorderWidth = 2 };

            task_status = new Banshee.Gui.Widgets.TaskStatusIcon ();

            EventBox status_event_box = new EventBox ();
            status_event_box.ButtonPressEvent += OnStatusBoxButtonPress;

            status_label = new Label ();
            status_event_box.Add (status_label);

            HBox status_hbox = new HBox (true, 0);
            status_hbox.PackStart (status_event_box, false, false, 0);

            Alignment status_align = new Alignment (0.5f, 0.5f, 1.0f, 1.0f);
            status_align.Add (status_hbox);

            RepeatActionButton repeat_button = new RepeatActionButton ();
            repeat_button.SizeAllocated += delegate (object o, Gtk.SizeAllocatedArgs args) {
                status_align.LeftPadding = (uint)args.Allocation.Width;
            };

            footer_toolbar.PackStart (task_status, false, false, 0);
            footer_toolbar.PackStart (status_align, true, true, 0);
            footer_toolbar.PackStart (repeat_button, false, false, 0);

            footer_toolbar.ShowAll ();
            primary_vbox.PackStart (footer_toolbar, false, true, 0);
        }