Skip to content

Commit

Permalink
Ignore CustomLayout
Browse files Browse the repository at this point in the history
Following the discussion in gtk-rs#23.

Closes: gtk-rs#23
  • Loading branch information
A6GibKm committed Jan 25, 2021
1 parent f05e90e commit 9a48e2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
3 changes: 2 additions & 1 deletion gtk4/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ generate = [
"Gtk.CssParserError",
"Gtk.CssParserWarning",
"Gtk.CssProvider",
"Gtk.CustomLayout",
"Gtk.DebugFlags",
"Gtk.DeleteType",
"Gtk.DialogFlags",
Expand Down Expand Up @@ -186,6 +185,8 @@ generate = [

# TODO
ignore = [
# subclass LayoutManager if you need a custom layout.
"Gtk.CustomLayout",
]

manual = [
Expand Down
7 changes: 1 addition & 6 deletions gtk4/src/auto/custom_layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ glib::wrapper! {
}
}

impl CustomLayout {
//#[doc(alias = "gtk_custom_layout_new")]
//pub fn new<P: FnMut(&Widget, &Orientation, i32, i32, i32, i32, i32), Q: FnMut(&Widget, i32, i32, i32)>(request_mode: Option<&mut dyn (FnMut(&Widget) -> SizeRequestMode)>, measure: P, allocate: Q) -> CustomLayout {
// unsafe { TODO: call ffi:gtk_custom_layout_new() }
//}
}
impl CustomLayout {}

impl fmt::Display for CustomLayout {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
Expand Down
3 changes: 0 additions & 3 deletions gtk4/src/auto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ pub use self::css_provider::CssProvider;
mod custom_filter;
pub use self::custom_filter::CustomFilter;

mod custom_layout;
pub use self::custom_layout::CustomLayout;

mod custom_sorter;
pub use self::custom_sorter::CustomSorter;

Expand Down

0 comments on commit 9a48e2d

Please sign in to comment.