Skip to content

Commit

Permalink
ErrorView: prep details button for Gtk4 (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored May 28, 2024
1 parent 2e0543b commit a8ddfe5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Views/ErrorView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,21 @@ public class ErrorView : AbstractInstallerView {
xalign = 0
};

var terminal_button_label = new Gtk.Label (_("Details"));

var terminal_button_box = new Gtk.Box (HORIZONTAL, 0);
terminal_button_box.add (new Gtk.Image.from_icon_name ("utilities-terminal-symbolic", BUTTON));
terminal_button_box.add (terminal_button_label);

var terminal_button = new Gtk.ToggleButton () {
always_show_image = true,
halign = Gtk.Align.START,
image = new Gtk.Image.from_icon_name ("utilities-terminal-symbolic", Gtk.IconSize.SMALL_TOOLBAR),
label = _("Details"),
child = terminal_button_box,
halign = START,
margin_top = 12
};
terminal_button.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);

terminal_button_label.mnemonic_widget = terminal_button;

var buffer = new Gtk.TextBuffer (null) {
text = log
};
Expand Down

0 comments on commit a8ddfe5

Please sign in to comment.