Skip to content

Commit

Permalink
gio: Add type parameter to ListModel and ListStore
Browse files Browse the repository at this point in the history
  • Loading branch information
jf2048 committed Mar 14, 2022
1 parent 3c41d6d commit 2ca49d5
Show file tree
Hide file tree
Showing 9 changed files with 455 additions and 356 deletions.
30 changes: 0 additions & 30 deletions gio/Gir.toml
Original file line number Diff line number Diff line change
Expand Up @@ -788,36 +788,6 @@ manual_traits = ["IOStreamExtManual"]
#readonly
manual = true

[[object]]
name = "Gio.ListModel"
status = "generate"
manual_traits = ["ListModelExtManual"]
# Can get removed when gir shadow annotations are implemented (gtk-rs/gir#1112)
[[object.function]]
name = "get_item"
ignore = true
[[object.function]]
name = "get_object"
rename = "item"

[[object]]
name = "Gio.ListStore"
status = "generate"
generate_builder = true
[[object.function]]
name = "insert_sorted"
manual = true
[[object.function]]
name = "sort"
manual = true
[[object.function]]
name = "splice"
# More generic arguments
manual = true
[[object.function]]
name = "find_with_equal_func"
ignore = true # See https://gitlab.gnome.org/GNOME/glib/-/issues/2447

[[object]]
name = "Gio.MemoryInputStream"
status = "generate"
Expand Down
121 changes: 0 additions & 121 deletions gio/src/auto/list_model.rs

This file was deleted.

138 changes: 0 additions & 138 deletions gio/src/auto/list_store.rs

This file was deleted.

8 changes: 0 additions & 8 deletions gio/src/auto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,6 @@ pub use self::initable::Initable;
mod input_stream;
pub use self::input_stream::InputStream;

mod list_model;
pub use self::list_model::ListModel;

mod list_store;
pub use self::list_store::ListStore;

mod loadable_icon;
pub use self::loadable_icon::LoadableIcon;

Expand Down Expand Up @@ -723,7 +717,6 @@ pub mod traits {
pub use super::initable::InitableExt;
pub use super::input_stream::InputStreamExt;
pub use super::io_stream::IOStreamExt;
pub use super::list_model::ListModelExt;
pub use super::loadable_icon::LoadableIconExt;
pub use super::memory_input_stream::MemoryInputStreamExt;
#[cfg(any(feature = "v2_64", feature = "dox"))]
Expand Down Expand Up @@ -799,5 +792,4 @@ pub mod builders {
pub use super::converter_output_stream::ConverterOutputStreamBuilder;
pub use super::data_input_stream::DataInputStreamBuilder;
pub use super::data_output_stream::DataOutputStreamBuilder;
pub use super::list_store::ListStoreBuilder;
}
2 changes: 2 additions & 0 deletions gio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ mod initable;
mod input_stream;
pub use crate::input_stream::{InputStreamAsyncBufRead, InputStreamRead};
mod list_model;
pub use list_model::ListModel;
mod list_store;
pub use list_store::ListStore;
#[cfg(test)]
mod memory_input_stream;
#[cfg(test)]
Expand Down
Loading

0 comments on commit 2ca49d5

Please sign in to comment.