Skip to content

Commit a0d3ee0

Browse files
elmarcobilelmoussaoui
authored andcommitted
gtk: generate and fix set_resource_path()
Fixes: #494 Signed-off-by: Marc-André Lureau <[email protected]>
1 parent f7e5511 commit a0d3ee0

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

gtk4/Gir.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,10 +1238,6 @@ trust_return_value_nullability = false
12381238
name = "get_icon_sizes"
12391239
ignore = true # TODO: implement me
12401240
# TODO gtk3 ignored some more array functions
1241-
[[object.function]]
1242-
name = "set_resource_path"
1243-
# ToGlibPtr<'_, *const *const i8>` is not implemented for `str`
1244-
manual = true
12451241

12461242
[[object]]
12471243
name = "Gtk.IconView"

gtk4/src/auto/icon_theme.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@ impl IconTheme {
166166
}
167167
}
168168

169+
#[doc(alias = "gtk_icon_theme_set_resource_path")]
170+
pub fn set_resource_path(&self, path: &[&str]) {
171+
unsafe {
172+
ffi::gtk_icon_theme_set_resource_path(self.to_glib_none().0, path.to_glib_none().0);
173+
}
174+
}
175+
169176
#[doc(alias = "gtk_icon_theme_set_search_path")]
170177
pub fn set_search_path(&self, path: &[&std::path::Path]) {
171178
unsafe {

gtk4/src/icon_theme.rs

Lines changed: 0 additions & 13 deletions
This file was deleted.

gtk4/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ mod flow_box;
136136
mod font_chooser;
137137
mod functions;
138138
mod gesture_stylus;
139-
mod icon_theme;
140139
mod im_context;
141140
mod im_context_simple;
142141
mod info_bar;

0 commit comments

Comments
 (0)