Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Jun 21, 2024
1 parent bd1900b commit 3e62db0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Widgets/AppContainers/ListPackageRowGrid.vala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class AppCenter.Widgets.ListPackageRowGrid : AbstractPackageRowGrid {
}

construct {
package_name = new Gtk.Label (package.get_name ()) {
package_name = new Gtk.Label (null) {
ellipsize = Pango.EllipsizeMode.END,
lines = 2,
max_width_chars = 1,
Expand All @@ -37,7 +37,7 @@ public class AppCenter.Widgets.ListPackageRowGrid : AbstractPackageRowGrid {
};
package_name.add_css_class (Granite.STYLE_CLASS_H3_LABEL);

package_summary = new Gtk.Label (package.get_summary ()) {
package_summary = new Gtk.Label (null) {
ellipsize = Pango.EllipsizeMode.END,
hexpand = true,
lines = 2,
Expand All @@ -49,10 +49,6 @@ public class AppCenter.Widgets.ListPackageRowGrid : AbstractPackageRowGrid {
};
package_summary.add_css_class (Granite.STYLE_CLASS_DIM_LABEL);

if (package.is_local) {
action_stack.visible = false;
}

var grid = new Gtk.Grid () {
column_spacing = 12,
row_spacing = 3
Expand All @@ -69,6 +65,8 @@ public class AppCenter.Widgets.ListPackageRowGrid : AbstractPackageRowGrid {
package_name.label = package.get_name ();
package_summary.label = package.get_summary ();

action_stack.visible = !package.is_local;

this.package = package;
}
}

0 comments on commit 3e62db0

Please sign in to comment.