Skip to content

Commit

Permalink
Use a nested box
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Dec 20, 2023
1 parent 3dc8531 commit ce59a75
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/Views/OperatingSystemView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,21 @@ public class About.OperatingSystemView : Gtk.Box {

var settings_restore_button = new Gtk.Button.with_label (_("Restore Default Settings"));

var button_grid = new Gtk.Box (HORIZONTAL, 6);
button_grid.append (settings_restore_button);
button_grid.append (new Gtk.Grid () { hexpand = true });
button_grid.append (bug_button);
var primary_button_box = new Gtk.Box (HORIZONTAL, 6) {
hexpand = true,
halign = END,
homogeneous = true
};
primary_button_box.append (bug_button);
if (update_button != null) {
button_grid.append (update_button);
primary_button_box.append (update_button);
}

var button_grid = new Gtk.Box (HORIZONTAL, 6);
button_grid.append (settings_restore_button);
button_grid.append (primary_button_box);


software_grid = new Gtk.Grid () {
// The avatar has some built-in margin for shadows
column_spacing = 32 - 6,
Expand Down

0 comments on commit ce59a75

Please sign in to comment.