Skip to content

Commit

Permalink
Added a Gtk.ScrollingWindow to the Release notes dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
italo-capasso committed Jan 16, 2025
1 parent 99df7a7 commit c95660f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/Widgets/AppContainers/InstalledPackageRowGrid.vala
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ public class AppCenter.Widgets.InstalledPackageRowGrid : AbstractPackageRowGrid

var releases_title = new Gtk.Label (title) {
selectable = true,
width_chars = 20,
wrap = true
halign = Gtk.Align.CENTER
};
releases_title.add_css_class ("primary");

Expand All @@ -156,10 +155,16 @@ public class AppCenter.Widgets.InstalledPackageRowGrid : AbstractPackageRowGrid
margin_start = 12,
vexpand = true
};
releases_dialog_box.append (releases_title);
releases_dialog_box.append (release_row);

get_content_area ().append (releases_dialog_box);
var release_scrolled_window = new Gtk.ScrolledWindow () {
child = releases_dialog_box,
width_request = 400,
height_request = 320,
valign = Gtk.Align.FILL
};
get_content_area ().append (releases_title);
get_content_area ().append (release_scrolled_window);

add_button (_("Close"), Gtk.ResponseType.CLOSE);

Expand Down

0 comments on commit c95660f

Please sign in to comment.