mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
merge namespaces
This commit is contained in:
parent
d8320e3b99
commit
bf4c2c1e84
1 changed files with 4 additions and 2 deletions
|
|
@ -63,8 +63,10 @@ impl Dialog for PreferencesDialog {
|
||||||
.icon_name("network-transmit-receive")
|
.icon_name("network-transmit-receive")
|
||||||
.build();
|
.build();
|
||||||
if let Some(ref socket) = this.socket {
|
if let Some(ref socket) = this.socket {
|
||||||
use gtk::gio::{SocketAddress, SocketFamily};
|
use gtk::{
|
||||||
use gtk::prelude::{SocketAddressExt, SocketConnectableExt};
|
gio::{SocketAddress, SocketFamily},
|
||||||
|
prelude::{SocketAddressExt, SocketConnectableExt},
|
||||||
|
};
|
||||||
/// Convert socket family to string
|
/// Convert socket family to string
|
||||||
fn f2s(socket_family: &SocketFamily) -> &str {
|
fn f2s(socket_family: &SocketFamily) -> &str {
|
||||||
match socket_family {
|
match socket_family {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue