Skip to content

Commit

Permalink
Add halign and TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Aug 26, 2023
1 parent cc16fdd commit c51c0ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ApplicationsPanel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ public class Sound.ApplicationsPanel : Gtk.Box {
child = scrolled_window
};

var reset_button = new Gtk.Button.with_label (_("Reset all apps to default"));
var reset_button = new Gtk.Button.with_label (_("Reset all apps to default")) {
halign = END
};

orientation = VERTICAL;
spacing = 12;
add (frame);
add (reset_button);

// TODO: Reset also non active applications
reset_button.clicked.connect (() => {
for (int i = 0; i < pulse_audio_manager.apps.get_n_items (); i++) {
pulse_audio_manager.change_application_volume ((App) pulse_audio_manager.apps.get_item (i), 1);
Expand Down

0 comments on commit c51c0ce

Please sign in to comment.