mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 19:34:24 +02:00
Merge branch 'feat/networkmanager' into develop
This commit is contained in:
commit
5c9ca717d2
2 changed files with 7 additions and 7 deletions
|
@ -12,9 +12,9 @@ use zbus::{
|
||||||
|
|
||||||
use crate::{register_fallible_client, spawn_blocking};
|
use crate::{register_fallible_client, spawn_blocking};
|
||||||
|
|
||||||
static DBUS_BUS: &str = "org.freedesktop.NetworkManager";
|
const DBUS_BUS: &str = "org.freedesktop.NetworkManager";
|
||||||
static DBUS_PATH: &str = "/org/freedesktop/NetworkManager";
|
const DBUS_PATH: &str = "/org/freedesktop/NetworkManager";
|
||||||
static DBUS_INTERFACE: &str = "org.freedesktop.NetworkManager";
|
const DBUS_INTERFACE: &str = "org.freedesktop.NetworkManager";
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Client {
|
pub struct Client {
|
||||||
|
|
|
@ -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, Image, Orientation};
|
use gtk::{Box as GtkBox, 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<Box> for NetworkManagerModule {
|
impl Module<GtkBox> for NetworkManagerModule {
|
||||||
type SendMessage = ClientState;
|
type SendMessage = ClientState;
|
||||||
type ReceiveMessage = ();
|
type ReceiveMessage = ();
|
||||||
|
|
||||||
|
@ -53,8 +53,8 @@ impl Module<Box> for NetworkManagerModule {
|
||||||
self,
|
self,
|
||||||
context: WidgetContext<ClientState, ()>,
|
context: WidgetContext<ClientState, ()>,
|
||||||
info: &ModuleInfo,
|
info: &ModuleInfo,
|
||||||
) -> Result<ModuleParts<Box>> {
|
) -> Result<ModuleParts<GtkBox>> {
|
||||||
let container = Box::new(Orientation::Horizontal, 0);
|
let container = GtkBox::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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue