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 and Jake Stanger committed Nov 25, 2024
1 parent e7ffc37 commit a181d4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/modules/networkmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use color_eyre::Result;
use futures_lite::StreamExt;
use futures_signals::signal::SignalExt;
use gtk::prelude::ContainerExt;
use gtk::{Box as GtkBox, Image, Orientation};
use gtk::{Box as GtkBox, Image};
use serde::Deserialize;
use tokio::sync::mpsc::Receiver;

Expand Down 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 a181d4e

Please sign in to comment.