Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit ba479de

Browse files
committed
Change the condition to only be enabled by the feature
1 parent bcdb59b commit ba479de

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

gdkwayland/src/wayland_window.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl WaylandWindow {
9595
}
9696
}
9797

98-
#[cfg(any(feature = "v3_24_22", docsrs))]
98+
#[cfg(feature = "v3_24_22")]
9999
#[cfg_attr(docsrs, doc(cfg(feature = "v3_24_22")))]
100100
#[doc(alias = "gdk_wayland_window_set_application_id")]
101101
pub fn set_application_id(&self, application_id: &str) -> bool {
@@ -112,7 +112,7 @@ impl WaylandWindow {
112112
unsafe { ffi::gdk_wayland_window_announce_csd(self.to_glib_none().0) }
113113
}
114114

115-
#[cfg(any(feature = "v3_24", docsrs))]
115+
#[cfg(feature = "v3_24")]
116116
#[cfg_attr(docsrs, doc(cfg(feature = "v3_24")))]
117117
#[doc(alias = "gdk_wayland_window_announce_ssd")]
118118
pub fn announce_ssd(&self) {

gdkwayland/sys/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ extern "C" {
7171
parent_handle: *const c_char,
7272
) -> glib::gboolean;
7373

74-
#[cfg(any(feature = "v3_24_22", docsrs))]
74+
#[cfg(feature = "v3_24_22")]
7575
#[cfg_attr(docsrs, doc(cfg(feature = "v3_24_22")))]
7676
pub fn gdk_wayland_window_set_application_id(
7777
window: *mut GdkWaylandWindow,
@@ -80,18 +80,18 @@ extern "C" {
8080

8181
pub fn gdk_wayland_window_announce_csd(window: *mut GdkWaylandWindow);
8282

83-
#[cfg(any(feature = "v3_24", docsrs))]
83+
#[cfg(feature = "v3_24")]
8484
#[cfg_attr(docsrs, doc(cfg(feature = "v3_24")))]
8585
pub fn gdk_wayland_window_announce_ssd(window: *mut GdkWaylandWindow);
8686

87-
#[cfg(any(feature = "v3_24", docsrs))]
87+
#[cfg(feature = "v3_24")]
8888
#[cfg_attr(docsrs, doc(cfg(feature = "v3_24")))]
8989
pub fn gdk_wayland_window_add_frame_callback_surface(
9090
window: *mut GdkWaylandWindow,
9191
surface: glib::gconstpointer,
9292
);
9393

94-
#[cfg(any(feature = "v3_24", docsrs))]
94+
#[cfg(feature = "v3_24")]
9595
#[cfg_attr(docsrs, doc(cfg(feature = "v3_24")))]
9696
pub fn gdk_wayland_window_remove_frame_callback_surface(
9797
window: *mut GdkWaylandWindow,

gtk/src/file_chooser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Take a look at the license at the top of the repository in the LICENSE file.
22

33
use crate::FileChooser;
4-
#[cfg(any(feature = "v3_22", docsrs))]
4+
#[cfg(feature = "v3_22")]
55
#[cfg_attr(docsrs, doc(cfg(feature = "v3_22")))]
66
use glib::translate::*;
77
use glib::IsA;
@@ -14,7 +14,7 @@ mod sealed {
1414
}
1515

1616
pub trait FileChooserExtManual: IsA<FileChooser> + sealed::Sealed + 'static {
17-
#[cfg(any(feature = "v3_22", docsrs))]
17+
#[cfg(feature = "v3_22")]
1818
#[cfg_attr(docsrs, doc(cfg(feature = "v3_22")))]
1919
#[doc(alias = "gtk_file_chooser_add_choice")]
2020
fn add_choice(&self, id: &str, label: &str, options: &[(&str, &str)]) {

gtk/src/gesture_stylus.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Take a look at the license at the top of the repository in the LICENSE file.
22

3-
#[cfg(any(feature = "v3_24", docsrs))]
3+
#[cfg(feature = "v3_24")]
44
use crate::GestureStylus;
55
use gdk::AxisUse;
66
use glib::object::IsA;
@@ -12,7 +12,7 @@ mod sealed {
1212
}
1313

1414
pub trait GestureStylusExtManual: IsA<GestureStylus> + sealed::Sealed + 'static {
15-
#[cfg(any(feature = "v3_24", docsrs))]
15+
#[cfg(feature = "v3_24")]
1616
#[cfg_attr(docsrs, doc(cfg(feature = "v3_24")))]
1717
#[doc(alias = "gtk_gesture_stylus_get_axes")]
1818
#[doc(alias = "get_axes")]

gtk/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ mod file_filter_info;
8686
mod fixed;
8787
mod flow_box;
8888
mod functions;
89-
#[cfg(any(feature = "v3_24", docsrs))]
89+
#[cfg(feature = "v3_24")]
9090
mod gesture_stylus;
9191
mod im_context_simple;
9292
mod image;

gtk/src/prelude.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub use crate::entry_completion::EntryCompletionExtManual;
3333
pub use crate::file_chooser::FileChooserExtManual;
3434
pub use crate::fixed::FixedExtManual;
3535
pub use crate::flow_box::FlowBoxExtManual;
36-
#[cfg(any(feature = "v3_24", docsrs))]
36+
#[cfg(feature = "v3_24")]
3737
pub use crate::gesture_stylus::GestureStylusExtManual;
3838
pub use crate::im_context_simple::IMContextSimpleExtManual;
3939
pub use crate::image::ImageExtManual;

gtk/src/subclass/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ pub mod icon_view;
2525
pub mod list_box;
2626
pub mod list_box_row;
2727
pub mod menu_button;
28-
#[cfg(any(gdk_backend = "x11", docsrs))]
28+
#[cfg(gdk_backend = "x11")]
2929
pub mod plug;
3030
pub mod scrolled_window;
31-
#[cfg(any(gdk_backend = "x11", docsrs))]
31+
#[cfg(gdk_backend = "x11")]
3232
pub mod socket;
3333
pub mod stack;
3434
pub mod toggle_button;
@@ -67,10 +67,10 @@ pub mod prelude {
6767
pub use super::list_box::{ListBoxImpl, ListBoxImplExt};
6868
pub use super::list_box_row::{ListBoxRowImpl, ListBoxRowImplExt};
6969
pub use super::menu_button::MenuButtonImpl;
70-
#[cfg(any(gdk_backend = "x11", docsrs))]
70+
#[cfg(gdk_backend = "x11")]
7171
pub use super::plug::{PlugImpl, PlugImplExt};
7272
pub use super::scrolled_window::{ScrolledWindowImpl, ScrolledWindowImplExt};
73-
#[cfg(any(gdk_backend = "x11", docsrs))]
73+
#[cfg(gdk_backend = "x11")]
7474
pub use super::socket::{SocketImpl, SocketImplExt};
7575
pub use super::stack::StackImpl;
7676
pub use super::toggle_button::ToggleButtonImpl;

0 commit comments

Comments
 (0)