Skip to content

Commit

Permalink
Simplify List View Widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Mar 16, 2024
1 parent c32bb20 commit 3e6dc55
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 35 deletions.
57 changes: 25 additions & 32 deletions src/List View Widgets/main.blp
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,25 @@ Adw.StatusPage {
name: "listview";
title: _("List View");

child: Frame {
child: ScrolledWindow {
hscrollbar-policy: never;
propagate-natural-height: true;
has-frame: true;
valign: start;

ScrolledWindow {
hscrollbar-policy: never;
propagate-natural-height: true;

ListView list_view {
enable-rubberband: true;

factory: BuilderListItemFactory {
template ListItem {
child: Gtk.Box {
Gtk.Label {
label: bind template.item as <StringObject>.string;
height-request: 50;
margin-start: 12;
margin-end: 12;
}
};
}
};
}
ListView list_view {
factory: BuilderListItemFactory {
template ListItem {
child: Gtk.Box {
Gtk.Label {
label: bind template.item as <StringObject>.string;
height-request: 50;
margin-start: 12;
margin-end: 12;
}
};
}
};
}
};
}
Expand All @@ -95,19 +91,16 @@ Adw.StatusPage {
name: "gridview";
title: _("Grid View");

child: Frame {
child: ScrolledWindow {
hscrollbar-policy: never;
propagate-natural-height: true;
has-frame: true;
valign: start;

ScrolledWindow {
hscrollbar-policy: never;
propagate-natural-height: true;

GridView grid_view {
orientation: vertical;
max-columns: 2;
min-columns: 2;
enable-rubberband: true;
}
GridView grid_view {
orientation: vertical;
max-columns: 2;
min-columns: 2;
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/Spell Checker/main.blp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Adw.StatusPage {

LinkButton {
label: _("Documentation");
uri: "https://chergert.pages.gitlab.gnome.org/libspelling/libspelling-1/";
uri: "https://gnome.pages.gitlab.gnome.org/libspelling/libspelling-1/";
}
};
}
4 changes: 2 additions & 2 deletions src/Text Fields/main.blp
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ Adw.Clamp {
}

Entry entry_icon {
primary-icon-name: "about-symbolic";
primary-icon-name: "help-about-symbolic";
primary-icon-activatable: true;
primary-icon-tooltip-text: _("Click on Me");
secondary-icon-name: "bell-symbolic";
secondary-icon-name: "bell-outline-symbolic";
secondary-icon-tooltip-text: _("No Click on Me");
}
}
Expand Down

0 comments on commit 3e6dc55

Please sign in to comment.