public GtkNotificationAreaBox(BaseClientWindow window) { Visible = false; IconName = Banshee.ServiceStack.Application.IconName; Tooltip = window.Title; window.TitleChanged += delegate { Tooltip = window.Title; }; }
public GtkNotificationAreaBox(BaseClientWindow window) { Visible = false; IconName = (IconThemeUtils.HasIcon("banshee-panel")) ? "banshee-panel" : Banshee.ServiceStack.Application.IconName; Tooltip = window.Title; window.TitleChanged += delegate { Tooltip = window.Title; }; }
public GtkNotificationAreaBox(BaseClientWindow window) { Visible = false; IconName = (IconThemeUtils.HasIcon("banshee-panel")) ? "banshee-panel" : ServiceStack.Application.IconName; HasTooltip = true; Activate += delegate { OnActivated(); }; PopupMenu += delegate { OnPopupMenuEvent(); }; _popup = new TrackInfoPopup(); }
public MiniMode(BaseClientWindow defaultMainWindow) : base(Catalog.GetString("Banshee Media Player"), "minimode", 0, 0) { default_main_window = defaultMainWindow; BorderWidth = 12; Resizable = false; tooltip_host = TooltipSetter.CreateHost(); Build(); ShowAll(); SetHeightLimit(); }
public MiniMode(BaseClientWindow defaultMainWindow) : base(Catalog.GetString("Banshee Media Player"), new WindowConfiguration(WidthSchema, HeightSchema, XPosSchema, YPosSchema, MaximizedSchema)) { default_main_window = defaultMainWindow; BorderWidth = 12; Resizable = false; Build(); ShowAll(); SetHeightLimit(); }
public MiniMode(BaseClientWindow defaultMainWindow) : base(Catalog.GetString("Banshee Media Player"), "minimode", 0, 0) { default_main_window = defaultMainWindow; glade = new Glade.XML(System.Reflection.Assembly.GetExecutingAssembly(), "minimode.glade", "MiniModeWindow", null); glade.Autoconnect(this); Widget child = glade["mini_mode_contents"]; (child.Parent as Container).Remove(child); Add(child); BorderWidth = 12; Resizable = false; // Playback Buttons Widget previous_button = ActionService.PlaybackActions["PreviousAction"].CreateToolItem(); Widget playpause_button = ActionService.PlaybackActions["PlayPauseAction"].CreateToolItem(); Widget button = ActionService.PlaybackActions["NextAction"].CreateToolItem(); Menu menu = ActionService.PlaybackActions.ShuffleActions.CreateMenu(); MenuButton next_button = new MenuButton(button, menu, true); PlaybackBox.PackStart(previous_button, false, false, 0); PlaybackBox.PackStart(playpause_button, false, false, 0); PlaybackBox.PackStart(next_button, false, false, 0); PlaybackBox.ShowAll(); // Seek Slider/Position Label seek_slider = new ConnectedSeekSlider(); SeekContainer.PackStart(seek_slider, false, false, 0); SeekContainer.ShowAll(); // Volume button volume_button = new ConnectedVolumeButton(); VolumeContainer.PackStart(volume_button, false, false, 0); volume_button.Show(); // Source combobox source_combo_box = new SourceComboBox(); SourceBox.PackStart(source_combo_box, true, true, 0); source_combo_box.Show(); // Track info track_info_display = new ClassicTrackInfoDisplay(); track_info_display.Show(); CoverBox.PackStart(track_info_display, true, true, 0); // Repeat button RepeatActionButton repeat_toggle_button = new RepeatActionButton(); LowerButtonsBox.PackEnd(repeat_toggle_button, false, false, 0); LowerButtonsBox.ShowAll(); tooltip_host = TooltipSetter.CreateHost(); SetTip(fullmode_button, Catalog.GetString("Switch back to full mode")); SetTip(repeat_toggle_button, Catalog.GetString("Change repeat playback mode")); // Hook up everything ServiceManager.PlayerEngine.ConnectEvent(OnPlayerEvent, PlayerEvent.Error | PlayerEvent.StateChange | PlayerEvent.TrackInfoUpdated); SetHeightLimit(); }