Skip to content

Commit 2f43550

Browse files
Add missing since annotations
1 parent 203267a commit 2f43550

File tree

7 files changed

+66
-2
lines changed

7 files changed

+66
-2
lines changed

gdk4/Gir.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,9 @@ status = "generate"
557557
pattern = "(g8a8_premultiplied|g8a8|g8|g16a16_premultiplied|g16a16|g16|a8|a16|a16_float|a32_float)"
558558
version = "4.12"
559559
[[object.member]]
560+
pattern = "(a8b8g8r8_premultiplied|b8g8r8x8|x8r8g8b8|r8g8b8x8|x8b8g8r8)"
561+
version = "4.14"
562+
[[object.member]]
560563
name = "n_formats"
561564
alias = true # not useful
562565

gdk4/src/auto/enums.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,14 +1602,24 @@ pub enum MemoryFormat {
16021602
#[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
16031603
#[doc(alias = "GDK_MEMORY_A32_FLOAT")]
16041604
A32Float,
1605+
#[cfg(feature = "v4_14")]
1606+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
16051607
#[doc(alias = "GDK_MEMORY_A8B8G8R8_PREMULTIPLIED")]
16061608
A8b8g8r8Premultiplied,
1609+
#[cfg(feature = "v4_14")]
1610+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
16071611
#[doc(alias = "GDK_MEMORY_B8G8R8X8")]
16081612
B8g8r8x8,
1613+
#[cfg(feature = "v4_14")]
1614+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
16091615
#[doc(alias = "GDK_MEMORY_X8R8G8B8")]
16101616
X8r8g8b8,
1617+
#[cfg(feature = "v4_14")]
1618+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
16111619
#[doc(alias = "GDK_MEMORY_R8G8B8X8")]
16121620
R8g8b8x8,
1621+
#[cfg(feature = "v4_14")]
1622+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
16131623
#[doc(alias = "GDK_MEMORY_X8B8G8R8")]
16141624
X8b8g8r8,
16151625
#[doc(hidden)]
@@ -1673,10 +1683,15 @@ impl IntoGlib for MemoryFormat {
16731683
Self::A16Float => ffi::GDK_MEMORY_A16_FLOAT,
16741684
#[cfg(feature = "v4_12")]
16751685
Self::A32Float => ffi::GDK_MEMORY_A32_FLOAT,
1686+
#[cfg(feature = "v4_14")]
16761687
Self::A8b8g8r8Premultiplied => ffi::GDK_MEMORY_A8B8G8R8_PREMULTIPLIED,
1688+
#[cfg(feature = "v4_14")]
16771689
Self::B8g8r8x8 => ffi::GDK_MEMORY_B8G8R8X8,
1690+
#[cfg(feature = "v4_14")]
16781691
Self::X8r8g8b8 => ffi::GDK_MEMORY_X8R8G8B8,
1692+
#[cfg(feature = "v4_14")]
16791693
Self::R8g8b8x8 => ffi::GDK_MEMORY_R8G8B8X8,
1694+
#[cfg(feature = "v4_14")]
16801695
Self::X8b8g8r8 => ffi::GDK_MEMORY_X8B8G8R8,
16811696
Self::__Unknown(value) => value,
16821697
}
@@ -1740,10 +1755,15 @@ impl FromGlib<ffi::GdkMemoryFormat> for MemoryFormat {
17401755
ffi::GDK_MEMORY_A16_FLOAT => Self::A16Float,
17411756
#[cfg(feature = "v4_12")]
17421757
ffi::GDK_MEMORY_A32_FLOAT => Self::A32Float,
1758+
#[cfg(feature = "v4_14")]
17431759
ffi::GDK_MEMORY_A8B8G8R8_PREMULTIPLIED => Self::A8b8g8r8Premultiplied,
1760+
#[cfg(feature = "v4_14")]
17441761
ffi::GDK_MEMORY_B8G8R8X8 => Self::B8g8r8x8,
1762+
#[cfg(feature = "v4_14")]
17451763
ffi::GDK_MEMORY_X8R8G8B8 => Self::X8r8g8b8,
1764+
#[cfg(feature = "v4_14")]
17461765
ffi::GDK_MEMORY_R8G8B8X8 => Self::R8g8b8x8,
1766+
#[cfg(feature = "v4_14")]
17471767
ffi::GDK_MEMORY_X8B8G8R8 => Self::X8b8g8r8,
17481768
value => Self::__Unknown(value),
17491769
}

gtk4/Gir.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ generate = [
127127
"Gtk.GestureSwipe",
128128
"Gtk.GestureZoom",
129129
"Gtk.GraphicsOffload",
130-
"Gtk.GraphicsOffloadEnabled",
131130
"Gtk.Grid",
132131
"Gtk.GridLayout",
133132
"Gtk.GridView",
@@ -148,7 +147,6 @@ generate = [
148147
"Gtk.LayoutManager",
149148
"Gtk.LevelBar",
150149
"Gtk.LevelBarMode",
151-
"Gtk.License",
152150
"Gtk.ListBase",
153151
"Gtk.ListBoxRow",
154152
"Gtk.ListItemFactory",
@@ -1373,6 +1371,11 @@ status = "generate"
13731371
[object.signal.return]
13741372
nullable = true
13751373

1374+
[[object]]
1375+
name = "Gtk.GraphicsOffloadEnabled"
1376+
status = "generate"
1377+
version = "4.14"
1378+
13761379
[[object]]
13771380
name = "Gtk.GridLayoutChild"
13781381
status = "generate"
@@ -1464,6 +1467,13 @@ status = "generate"
14641467
name = "tabs"
14651468
const = true
14661469

1470+
[[object]]
1471+
name = "Gtk.License"
1472+
status = "generate"
1473+
[[object.member]]
1474+
name = "0bsd"
1475+
version = "4.14"
1476+
14671477
[[object]]
14681478
name = "Gtk.LinkButton"
14691479
status = "generate"

gtk4/src/auto/enums.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4567,6 +4567,8 @@ impl From<FontLevel> for glib::Value {
45674567
}
45684568
}
45694569

4570+
#[cfg(feature = "v4_14")]
4571+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
45704572
#[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Clone, Copy)]
45714573
#[non_exhaustive]
45724574
#[doc(alias = "GtkGraphicsOffloadEnabled")]
@@ -4579,6 +4581,8 @@ pub enum GraphicsOffloadEnabled {
45794581
__Unknown(i32),
45804582
}
45814583

4584+
#[cfg(feature = "v4_14")]
4585+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
45824586
#[doc(hidden)]
45834587
impl IntoGlib for GraphicsOffloadEnabled {
45844588
type GlibType = ffi::GtkGraphicsOffloadEnabled;
@@ -4593,6 +4597,8 @@ impl IntoGlib for GraphicsOffloadEnabled {
45934597
}
45944598
}
45954599

4600+
#[cfg(feature = "v4_14")]
4601+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
45964602
#[doc(hidden)]
45974603
impl FromGlib<ffi::GtkGraphicsOffloadEnabled> for GraphicsOffloadEnabled {
45984604
#[inline]
@@ -4607,6 +4613,8 @@ impl FromGlib<ffi::GtkGraphicsOffloadEnabled> for GraphicsOffloadEnabled {
46074613
}
46084614
}
46094615

4616+
#[cfg(feature = "v4_14")]
4617+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
46104618
impl StaticType for GraphicsOffloadEnabled {
46114619
#[inline]
46124620
#[doc(alias = "gtk_graphics_offload_enabled_get_type")]
@@ -4615,6 +4623,8 @@ impl StaticType for GraphicsOffloadEnabled {
46154623
}
46164624
}
46174625

4626+
#[cfg(feature = "v4_14")]
4627+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
46184628
impl glib::HasParamSpec for GraphicsOffloadEnabled {
46194629
type ParamSpec = glib::ParamSpecEnum;
46204630
type SetValue = Self;
@@ -4625,10 +4635,14 @@ impl glib::HasParamSpec for GraphicsOffloadEnabled {
46254635
}
46264636
}
46274637

4638+
#[cfg(feature = "v4_14")]
4639+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
46284640
impl glib::value::ValueType for GraphicsOffloadEnabled {
46294641
type Type = Self;
46304642
}
46314643

4644+
#[cfg(feature = "v4_14")]
4645+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
46324646
unsafe impl<'a> glib::value::FromValue<'a> for GraphicsOffloadEnabled {
46334647
type Checker = glib::value::GenericValueTypeChecker<Self>;
46344648

@@ -4639,6 +4653,8 @@ unsafe impl<'a> glib::value::FromValue<'a> for GraphicsOffloadEnabled {
46394653
}
46404654
}
46414655

4656+
#[cfg(feature = "v4_14")]
4657+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
46424658
impl ToValue for GraphicsOffloadEnabled {
46434659
#[inline]
46444660
fn to_value(&self) -> glib::Value {
@@ -4655,6 +4671,8 @@ impl ToValue for GraphicsOffloadEnabled {
46554671
}
46564672
}
46574673

4674+
#[cfg(feature = "v4_14")]
4675+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
46584676
impl From<GraphicsOffloadEnabled> for glib::Value {
46594677
#[inline]
46604678
fn from(v: GraphicsOffloadEnabled) -> Self {
@@ -5593,6 +5611,8 @@ pub enum License {
55935611
Apache20,
55945612
#[doc(alias = "GTK_LICENSE_MPL_2_0")]
55955613
Mpl20,
5614+
#[cfg(feature = "v4_14")]
5615+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
55965616
#[doc(alias = "GTK_LICENSE_0BSD")]
55975617
_0bsd,
55985618
#[doc(hidden)]
@@ -5623,6 +5643,7 @@ impl IntoGlib for License {
56235643
Self::Bsd3 => ffi::GTK_LICENSE_BSD_3,
56245644
Self::Apache20 => ffi::GTK_LICENSE_APACHE_2_0,
56255645
Self::Mpl20 => ffi::GTK_LICENSE_MPL_2_0,
5646+
#[cfg(feature = "v4_14")]
56265647
Self::_0bsd => ffi::GTK_LICENSE_0BSD,
56275648
Self::__Unknown(value) => value,
56285649
}
@@ -5653,6 +5674,7 @@ impl FromGlib<ffi::GtkLicense> for License {
56535674
ffi::GTK_LICENSE_BSD_3 => Self::Bsd3,
56545675
ffi::GTK_LICENSE_APACHE_2_0 => Self::Apache20,
56555676
ffi::GTK_LICENSE_MPL_2_0 => Self::Mpl20,
5677+
#[cfg(feature = "v4_14")]
56565678
ffi::GTK_LICENSE_0BSD => Self::_0bsd,
56575679
value => Self::__Unknown(value),
56585680
}

gtk4/src/auto/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,8 @@ pub use self::enums::FilterMatch;
11541154
#[cfg(feature = "v4_10")]
11551155
#[cfg_attr(docsrs, doc(cfg(feature = "v4_10")))]
11561156
pub use self::enums::FontLevel;
1157+
#[cfg(feature = "v4_14")]
1158+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
11571159
pub use self::enums::GraphicsOffloadEnabled;
11581160
pub use self::enums::IconSize;
11591161
pub use self::enums::IconThemeError;

gtk4/sys/Gir.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ status = "generate"
3434
[[object.function]]
3535
name = "get_type"
3636
version = "4.2"
37+
38+
[[object]]
39+
name = "Gtk.GraphicsOffloadEnabled"
40+
status = "generate"
41+
version = "4.14"

gtk4/sys/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9511,6 +9511,8 @@ extern "C" {
95119511
//=========================================================================
95129512
// GtkGraphicsOffloadEnabled
95139513
//=========================================================================
9514+
#[cfg(feature = "v4_14")]
9515+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_14")))]
95149516
pub fn gtk_graphics_offload_enabled_get_type() -> GType;
95159517

95169518
//=========================================================================

0 commit comments

Comments
 (0)