M src/window.blp => src/window.blp +48 -48
@@ 100,62 100,62 @@ template $OliverWindow : Adw.ApplicationWindow {
vexpand: true;
ListView results {
- show-separators: true;
- sensitive: bind template.running inverted;
- /*header-factory: BuilderListItemFactory {
- template ListHeader {
- child: Label {
- halign: start;
- margin-start: 8;
- label: bind template.item as <$OliverResultData>.file;
- };
- }
- };
- */
- factory: BuilderListItemFactory {
- template ListItem {
- child: Box {
- margin-top: 8;
- margin-end: 8;
- margin-start: 8;
- margin-bottom: 8;
+ show-separators: true;
+ sensitive: bind template.running inverted;
+ /*header-factory: BuilderListItemFactory {
+ template ListHeader {
+ child: Label {
+ halign: start;
+ margin-start: 8;
+ label: bind template.item as <$OliverResultData>.file;
+ };
+ }
+ };
+ */
+ factory: BuilderListItemFactory {
+ template ListItem {
+ child: Box {
+ margin-top: 8;
+ margin-end: 8;
+ margin-start: 8;
+ margin-bottom: 8;
+ spacing: 8;
+ orientation: vertical;
+ Box {
+ orientation: horizontal;
spacing: 8;
- orientation: vertical;
+ Label {
+ styles ["heading"]
+ label: bind template.item as <$OliverResultData>.line;
+ halign: start;
+ valign: start;
+ justify: left;
+ width-request: 50;
+ }
Box {
- orientation: horizontal;
- spacing: 8;
+ hexpand: true;
+ halign: start;
+ valign: start;
Label {
- styles ["heading"]
- label: bind template.item as <$OliverResultData>.line;
+ label: bind template.item as <$OliverResultData>.message;
+ tooltip-text: bind template.item as <$OliverResultData>.tip;
halign: start;
valign: start;
justify: left;
- width-request: 50;
- }
- Box {
- hexpand: true;
- halign: start;
- valign: start;
- Label {
- label: bind template.item as <$OliverResultData>.message;
- tooltip-text: bind template.item as <$OliverResultData>.tip;
- halign: start;
- valign: start;
- justify: left;
- wrap: true;
- }
- }
- Image {
- halign: end;
- valign: start;
- icon-name: "dialog-warning-symbolic";
- tooltip-text: _("Non ignorable issue");
- visible: bind template.item as <$OliverResultData>.important;
+ wrap: true;
}
}
- };
- } // / template ListItem
- }; // / factory
+ Image {
+ halign: end;
+ valign: start;
+ icon-name: "dialog-warning-symbolic";
+ tooltip-text: _("Non ignorable issue");
+ visible: bind template.item as <$OliverResultData>.important;
+ }
+ }
+ };
+ } // / template ListItem
+ }; // / factory
} // / ListView results
}; // / ScrolledWindow
M src/window.vala => src/window.vala +0 -1
@@ 226,7 226,6 @@ namespace Oliver {
this.executor.run(this.projectFolder.get_path (), cmd);
} catch (SpawnError e) {
warning ("Error running phpstan: %s", e.message);
- warning ("%s %d %s", e.domain.to_string (), e.code, e.message);
this.message(@"Error executing PHPStan: $(e.message)");
}
}