Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit fa742f5

Browse files
Add new manual types
1 parent d647534 commit fa742f5

File tree

4 files changed

+30
-15
lines changed

4 files changed

+30
-15
lines changed

gdkx11/Gir.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,17 @@ manual = [
3333
"Gdk.Cursor",
3434
"Gdk.Device",
3535
"Gdk.DeviceManager",
36+
"Gdk.DeviceType",
3637
"Gdk.Display",
3738
"Gdk.DisplayManager",
3839
"Gdk.DragContext",
3940
"Gdk.GLContext",
41+
"Gdk.InputMode",
42+
"Gdk.InputSource",
4043
"Gdk.Keymap",
4144
"Gdk.Monitor",
4245
"Gdk.Screen",
46+
"Gdk.Seat",
4347
"Gdk.Visual",
4448
"Gdk.Window",
4549
"Gio.AppLaunchContext",

gdkx11/src/auto/x11_device_xi2.rs

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,17 @@ impl X11DeviceXI2Builder {
7171
}
7272
}
7373

74-
//pub fn input_mode(self, input_mode: /*Ignored*/gdk::InputMode) -> Self {
75-
// Self { builder: self.builder.property("input-mode", input_mode), }
76-
//}
74+
pub fn input_mode(self, input_mode: gdk::InputMode) -> Self {
75+
Self {
76+
builder: self.builder.property("input-mode", input_mode),
77+
}
78+
}
7779

78-
//pub fn input_source(self, input_source: /*Ignored*/gdk::InputSource) -> Self {
79-
// Self { builder: self.builder.property("input-source", input_source), }
80-
//}
80+
pub fn input_source(self, input_source: gdk::InputSource) -> Self {
81+
Self {
82+
builder: self.builder.property("input-source", input_source),
83+
}
84+
}
8185

8286
pub fn name(self, name: impl Into<glib::GString>) -> Self {
8387
Self {
@@ -97,13 +101,17 @@ impl X11DeviceXI2Builder {
97101
}
98102
}
99103

100-
//pub fn seat(self, seat: /*Ignored*/&gdk::Seat) -> Self {
101-
// Self { builder: self.builder.property("seat", seat), }
102-
//}
104+
pub fn seat(self, seat: &gdk::Seat) -> Self {
105+
Self {
106+
builder: self.builder.property("seat", seat.clone()),
107+
}
108+
}
103109

104-
//pub fn type_(self, type_: /*Ignored*/gdk::DeviceType) -> Self {
105-
// Self { builder: self.builder.property("type", type_), }
106-
//}
110+
pub fn type_(self, type_: gdk::DeviceType) -> Self {
111+
Self {
112+
builder: self.builder.property("type", type_),
113+
}
114+
}
107115

108116
pub fn vendor_id(self, vendor_id: impl Into<glib::GString>) -> Self {
109117
Self {

gtk/Gir.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ manual = [
235235
"Gio.Menu",
236236
"Gio.MenuModel",
237237
"Gio.MountOperation",
238+
"Gio.PasswordSave",
238239
"Gio.Permission",
239240
"GLib.Error",
240241
"GLib.KeyFile",

gtk/src/auto/mount_operation.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ impl MountOperationBuilder {
120120
}
121121
}
122122

123-
//pub fn password_save(self, password_save: /*Ignored*/gio::PasswordSave) -> Self {
124-
// Self { builder: self.builder.property("password-save", password_save), }
125-
//}
123+
pub fn password_save(self, password_save: gio::PasswordSave) -> Self {
124+
Self {
125+
builder: self.builder.property("password-save", password_save),
126+
}
127+
}
126128

127129
#[cfg(any(feature = "gio_v2_58", feature = "dox"))]
128130
#[cfg_attr(feature = "dox", doc(cfg(feature = "gio_v2_58")))]

0 commit comments

Comments
 (0)