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

Commit

Permalink
Regenerate with updated versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed Jun 11, 2020
1 parent 8e93a0b commit f78e15f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ travis-ci = { repository = "gtk-rs/pango" }
v1_38 = ["pango-sys/v1_38"]
v1_40 = ["v1_38"]
v1_42 = ["v1_40", "pango-sys/v1_42"]
v1_44 = ["v1_42", "pango-sys/v1_44"]
dox = ["pango-sys/dox", "glib/dox"]
purge-lgpl-docs = ["gtk-rs-lgpl-docs"]
embed-lgpl-docs = ["gtk-rs-lgpl-docs"]
Expand Down
12 changes: 12 additions & 0 deletions src/auto/attr_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use std::mem;
use AttrType;
use Attribute;

#[cfg(any(feature = "v1_44", feature = "dox"))]
glib_wrapper! {
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct AttrIterator(Boxed<pango_sys::PangoAttrIterator>);
Expand All @@ -19,6 +20,17 @@ glib_wrapper! {
}
}

#[cfg(not(any(feature = "v1_44", feature = "dox")))]
glib_wrapper! {
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct AttrIterator(Boxed<pango_sys::PangoAttrIterator>);

match fn {
copy => |ptr| pango_sys::pango_attr_iterator_copy(mut_override(ptr)),
free => |ptr| pango_sys::pango_attr_iterator_destroy(ptr),
}
}

impl AttrIterator {
pub fn get(&mut self, type_: AttrType) -> Option<Attribute> {
unsafe {
Expand Down
12 changes: 12 additions & 0 deletions src/auto/attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use glib::translate::*;
use pango_sys;
use AttrClass;

#[cfg(any(feature = "v1_44", feature = "dox"))]
glib_wrapper! {
#[derive(Debug, PartialOrd, Ord, Hash)]
pub struct Attribute(Boxed<pango_sys::PangoAttribute>);
Expand All @@ -17,6 +18,17 @@ glib_wrapper! {
}
}

#[cfg(not(any(feature = "v1_44", feature = "dox")))]
glib_wrapper! {
#[derive(Debug, PartialOrd, Ord, Hash)]
pub struct Attribute(Boxed<pango_sys::PangoAttribute>);

match fn {
copy => |ptr| pango_sys::pango_attribute_copy(mut_override(ptr)),
free => |ptr| pango_sys::pango_attribute_destroy(ptr),
}
}

impl Attribute {
fn equal(&self, attr2: &Attribute) -> bool {
unsafe {
Expand Down
2 changes: 1 addition & 1 deletion src/auto/tab_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl TabArray {
}
}

//pub fn new_with_positions(size: i32, positions_in_pixels: bool, first_alignment: TabAlign, first_position: i32, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> TabArray {
//pub fn with_positions(size: i32, positions_in_pixels: bool, first_alignment: TabAlign, first_position: i32, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) -> TabArray {
// unsafe { TODO: call pango_sys:pango_tab_array_new_with_positions() }
//}

Expand Down
2 changes: 1 addition & 1 deletion src/auto/versions.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generated by gir (https://github.com/gtk-rs/gir @ e75bde2)
Generated by gir (https://github.com/gtk-rs/gir @ 882e09b)
from gir-files (https://github.com/gtk-rs/gir-files @ 3043b14)

0 comments on commit f78e15f

Please sign in to comment.