Skip to content

Commit

Permalink
fix(networkmanager, upower): widget not vertical on left/right bars
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger authored Nov 25, 2024
1 parent e7ffc37 commit 3c5fe20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/networkmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl Module<GtkBox> for NetworkManagerModule {
context: WidgetContext<ClientState, ()>,
info: &ModuleInfo,
) -> Result<ModuleParts<GtkBox>> {
let container = GtkBox::new(Orientation::Horizontal, 0);
let container = GtkBox::new(info.bar_position.orientation(), 0);
let icon = Image::new();
icon.add_class("icon");
container.add(&icon);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/upower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl Module<gtk::Button> for UpowerModule {
.build();
label.add_class("label");

let container = gtk::Box::new(Orientation::Horizontal, 5);
let container = gtk::Box::new(info.bar_position.orientation(), 5);
container.add_class("contents");

let button = Button::new();
Expand Down

0 comments on commit 3c5fe20

Please sign in to comment.