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

Commit

Permalink
Merge pull request #655 from EPashkin/TextViewLayer_version
Browse files Browse the repository at this point in the history
Text view layer version
  • Loading branch information
GuillaumeGomez committed May 3, 2018
2 parents 1ca32b4 + c1c8ed5 commit c07927b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gir.toml
Expand Up @@ -202,7 +202,6 @@ generate = [
"Gtk.TextMark",
"Gtk.TextSearchFlags",
"Gtk.TextTagTable",
"Gtk.TextViewLayer",
"Gtk.TextWindowType",
"Gtk.ToggleButton",
"Gtk.ToggleToolButton",
Expand Down Expand Up @@ -1486,6 +1485,11 @@ status = "generate"
#actually Since 3.22.27
version = "3.22.26"

[[object]]
name = "Gtk.TextViewLayer"
status = "generate"
version = "3.14"

[[object]]
name = "Gtk.Toolbar"
status = "generate"
Expand Down
7 changes: 7 additions & 0 deletions src/auto/enums.rs
Expand Up @@ -5388,6 +5388,7 @@ impl SetValue for TextExtendSelection {
}
}

#[cfg(any(feature = "v3_14", feature = "dox"))]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
pub enum TextViewLayer {
Below,
Expand All @@ -5398,6 +5399,7 @@ pub enum TextViewLayer {
__Unknown(i32),
}

#[cfg(any(feature = "v3_14", feature = "dox"))]
#[doc(hidden)]
impl ToGlib for TextViewLayer {
type GlibType = ffi::GtkTextViewLayer;
Expand All @@ -5413,6 +5415,7 @@ impl ToGlib for TextViewLayer {
}
}

#[cfg(any(feature = "v3_14", feature = "dox"))]
#[doc(hidden)]
impl FromGlib<ffi::GtkTextViewLayer> for TextViewLayer {
fn from_glib(value: ffi::GtkTextViewLayer) -> Self {
Expand All @@ -5427,24 +5430,28 @@ impl FromGlib<ffi::GtkTextViewLayer> for TextViewLayer {
}
}

#[cfg(any(feature = "v3_14", feature = "dox"))]
impl StaticType for TextViewLayer {
fn static_type() -> Type {
unsafe { from_glib(ffi::gtk_text_view_layer_get_type()) }
}
}

#[cfg(any(feature = "v3_14", feature = "dox"))]
impl<'a> FromValueOptional<'a> for TextViewLayer {
unsafe fn from_value_optional(value: &Value) -> Option<Self> {
Some(FromValue::from_value(value))
}
}

#[cfg(any(feature = "v3_14", feature = "dox"))]
impl<'a> FromValue<'a> for TextViewLayer {
unsafe fn from_value(value: &Value) -> Self {
from_glib(gobject_ffi::g_value_get_enum(value.to_glib_none().0))
}
}

#[cfg(any(feature = "v3_14", feature = "dox"))]
impl SetValue for TextViewLayer {
unsafe fn set_value(value: &mut Value, this: &Self) {
gobject_ffi::g_value_set_enum(value.to_glib_none_mut().0, this.to_glib())
Expand Down
1 change: 1 addition & 0 deletions src/auto/mod.rs
Expand Up @@ -976,6 +976,7 @@ pub use self::enums::StateType;
pub use self::enums::TextDirection;
#[cfg(any(feature = "v3_16", feature = "dox"))]
pub use self::enums::TextExtendSelection;
#[cfg(any(feature = "v3_14", feature = "dox"))]
pub use self::enums::TextViewLayer;
pub use self::enums::TextWindowType;
pub use self::enums::ToolbarStyle;
Expand Down

0 comments on commit c07927b

Please sign in to comment.