diff --git a/src/modules/networkmanager.rs b/src/modules/networkmanager.rs index 55668ec0..de3bf615 100644 --- a/src/modules/networkmanager.rs +++ b/src/modules/networkmanager.rs @@ -57,7 +57,7 @@ impl Module for NetworkManagerModule { context: WidgetContext, info: &ModuleInfo, ) -> Result> { - 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); diff --git a/src/modules/upower.rs b/src/modules/upower.rs index b4fb2e4f..f2a87615 100644 --- a/src/modules/upower.rs +++ b/src/modules/upower.rs @@ -175,7 +175,7 @@ impl Module 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();