1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

Revert "Add GTK Box import alias, change DBus strings to const"

This reverts commit 33f73eefa0.
This commit is contained in:
Reinout Meliesie 2024-05-14 19:05:19 +02:00
parent 33f73eefa0
commit 17e830afbf
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
2 changed files with 7 additions and 7 deletions

View file

@ -12,9 +12,9 @@ use zbus::{
use crate::{register_fallible_client, spawn_blocking}; use crate::{register_fallible_client, spawn_blocking};
const DBUS_BUS: &str = "org.freedesktop.NetworkManager"; static DBUS_BUS: &str = "org.freedesktop.NetworkManager";
const DBUS_PATH: &str = "/org/freedesktop/NetworkManager"; static DBUS_PATH: &str = "/org/freedesktop/NetworkManager";
const DBUS_INTERFACE: &str = "org.freedesktop.NetworkManager"; static DBUS_INTERFACE: &str = "org.freedesktop.NetworkManager";
#[derive(Debug)] #[derive(Debug)]
pub struct Client { pub struct Client {

View file

@ -2,7 +2,7 @@ use color_eyre::Result;
use futures_lite::StreamExt; use futures_lite::StreamExt;
use futures_signals::signal::SignalExt; use futures_signals::signal::SignalExt;
use gtk::prelude::ContainerExt; use gtk::prelude::ContainerExt;
use gtk::{Box as GtkBox, Image, Orientation}; use gtk::{Box, Image, Orientation};
use serde::Deserialize; use serde::Deserialize;
use tokio::sync::mpsc::Receiver; use tokio::sync::mpsc::Receiver;
@ -26,7 +26,7 @@ const fn default_icon_size() -> i32 {
24 24
} }
impl Module<GtkBox> for NetworkManagerModule { impl Module<Box> for NetworkManagerModule {
type SendMessage = ClientState; type SendMessage = ClientState;
type ReceiveMessage = (); type ReceiveMessage = ();
@ -53,8 +53,8 @@ impl Module<GtkBox> for NetworkManagerModule {
self, self,
context: WidgetContext<ClientState, ()>, context: WidgetContext<ClientState, ()>,
info: &ModuleInfo, info: &ModuleInfo,
) -> Result<ModuleParts<GtkBox>> { ) -> Result<ModuleParts<Box>> {
let container = GtkBox::new(Orientation::Horizontal, 0); let container = Box::new(Orientation::Horizontal, 0);
let icon = Image::new(); let icon = Image::new();
icon.add_class("icon"); icon.add_class("icon");
container.add(&icon); container.add(&icon);