Inheritance: Gtk.Button
Exemple #1
0
 public VolumeScale(VolumeButton button, double min, double max, double step)
     : base(new Adjustment(min, min, max, step, 10 * step, 0))
 {
     this.button = button;
 }
 public VolumeScale(VolumeButton button, double min, double max, double step)
     : base(new Adjustment(min, min, max, step, 10 * step, 0))
 {
     this.button = button;
 }
Exemple #3
0
        private void SetupButtons()
        {
            toggle_play_button.Toggled += new EventHandler (OnTogglePlayButtonClicked);
            next_button.Clicked += new EventHandler (OnNextButtonClicked);
            love_button.Clicked += new EventHandler (OnLoveButtonClicked);
            hate_button.Clicked += new EventHandler (OnHateButtonClicked);
            tag_button.Clicked += new EventHandler (OnTagButtonClicked);
            journal_button.Clicked += new EventHandler (OnJournalButtonClicked);
            preferences_button.Clicked += new EventHandler (OnPreferencesButtonClicked);
            info_button.Clicked += new EventHandler (OnInfoButtonClicked);
            KeyPressEvent += OnKeyPressEvent;

            // Volume
            volume_button = new Bacon.VolumeButton ();
            volume_button.Relief = ReliefStyle.Normal;
            volume_button_container.Add (volume_button);
            volume_button.Visible = true;
            volume_button.VolumeChanged += new Bacon.VolumeButton.VolumeChangedHandler (OnVolumeChanged);

            volume_button.Volume = Driver.config.Volume;
        }