Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #739 from GuillaumeGomez/rename-socket-trait
Browse files Browse the repository at this point in the history
Rename socket trait
  • Loading branch information
GuillaumeGomez committed Nov 15, 2018
2 parents d164119 + fe99b69 commit 05bd9b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,7 @@ version = "3.20"
name = "Gtk.Socket"
status = "generate"
cfg_condition = "not(windows)"
trait_name = "GtkSocketExt"

[[object]]
name = "Gtk.SpinButton"
Expand Down
4 changes: 2 additions & 2 deletions src/auto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ mod socket;
#[cfg(any(not(windows), feature = "dox"))]
pub use self::socket::Socket;
#[cfg(any(not(windows), feature = "dox"))]
pub use self::socket::SocketExt;
pub use self::socket::GtkSocketExt;

mod spin_button;
pub use self::spin_button::SpinButton;
Expand Down Expand Up @@ -1476,7 +1476,7 @@ pub mod traits {
pub use super::ShortcutsWindowExt;
pub use super::SizeGroupExt;
#[cfg(any(not(windows), feature = "dox"))]
pub use super::SocketExt;
pub use super::GtkSocketExt;
pub use super::SpinButtonExt;
pub use super::SpinnerExt;
#[cfg(any(feature = "v3_10", feature = "dox"))]
Expand Down
4 changes: 2 additions & 2 deletions src/auto/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl Default for Socket {
}
}

pub trait SocketExt {
pub trait GtkSocketExt {
fn add_id(&self, window: xlib::Window);

fn get_id(&self) -> xlib::Window;
Expand All @@ -56,7 +56,7 @@ pub trait SocketExt {
fn connect_plug_removed<F: Fn(&Self) -> bool + 'static>(&self, f: F) -> SignalHandlerId;
}

impl<O: IsA<Socket> + IsA<glib::object::Object>> SocketExt for O {
impl<O: IsA<Socket> + IsA<glib::object::Object>> GtkSocketExt for O {
fn add_id(&self, window: xlib::Window) {
unsafe {
ffi::gtk_socket_add_id(self.to_glib_none().0, window);
Expand Down

0 comments on commit 05bd9b6

Please sign in to comment.