Skip to content

Commit

Permalink
AppInfoView: gtk4 prep (#2069)
Browse files Browse the repository at this point in the history
Co-authored-by: David Hewitt <davidmhewitt@users.noreply.github.com>
  • Loading branch information
danirabbit and davidmhewitt authored Aug 20, 2023
1 parent faf76e8 commit 495d90c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Views/AppInfoView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public class AppCenter.Views.AppInfoView : AppCenter.AbstractAppContainer {
};

var app_icon_overlay = new Gtk.Overlay () {
child = app_icon,
valign = Gtk.Align.START
};
app_icon_overlay.add (app_icon);

var scale_factor = get_scale_factor ();

Expand Down Expand Up @@ -227,9 +227,9 @@ public class AppCenter.Views.AppInfoView : AppCenter.AbstractAppContainer {
header_box.add (header_grid);

var header_clamp = new Hdy.Clamp () {
child = header_box,
maximum_size = MAX_WIDTH
};
header_clamp.add (header_box);

var header = new Gtk.Grid () {
hexpand = true
Expand Down Expand Up @@ -1280,10 +1280,11 @@ public class AppCenter.Views.AppInfoView : AppCenter.AbstractAppContainer {
box.add (title);

if (uri != null) {
var button = new Gtk.Button ();
var button = new Gtk.Button () {
child = box
};
button.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);

button.add (box);
add (button);

button.clicked.connect (() => {
Expand Down Expand Up @@ -1380,7 +1381,8 @@ public class AppCenter.Views.AppInfoView : AppCenter.AbstractAppContainer {

var icon = new Gtk.Image.from_icon_name (icon_name, Gtk.IconSize.DND) {
halign = Gtk.Align.START,
margin_bottom = 6
margin_bottom = 6,
pixel_size = 32
};

var label = new Gtk.Label (title) {
Expand Down

0 comments on commit 495d90c

Please sign in to comment.