[librsvg/bilelmoussaoui/new-gtk-rs-stack] Fix usage of the glib::flags derive
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/bilelmoussaoui/new-gtk-rs-stack] Fix usage of the glib::flags derive
- Date: Fri, 28 Jan 2022 00:01:51 +0000 (UTC)
commit 0ab1d70e2636803c603be783509d4b78076b4541
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Jan 27 17:58:52 2022 -0600
Fix usage of the glib::flags derive
Individual flags use
#[flags_value(name="FOO_BAR", nick="foo-bar")]
not
#[gflags(name="FOO_BAR", nick="foo-bar")]
Shouldn't gtk-rs-core have caught this unknown attribute?
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/634>
src/c_api/handle.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/c_api/handle.rs b/src/c_api/handle.rs
index f58db9928..0619325c0 100644
--- a/src/c_api/handle.rs
+++ b/src/c_api/handle.rs
@@ -82,13 +82,13 @@ impl fmt::Display for RenderingError {
/// Rust version of the `RsvgHandleFlags` enum in C.
#[glib::flags(name = "RsvgHandleFlags")]
pub enum HandleFlags {
- #[gflags(name = "RSVG_HANDLE_FLAGS_NONE", nick = "flags-none")]
+ #[flags_value(name = "RSVG_HANDLE_FLAGS_NONE", nick = "flags-none")]
NONE = 0,
- #[gflags(name = "RSVG_HANDLE_FLAG_UNLIMITED", nick = "flag-unlimited")]
+ #[flags_value(name = "RSVG_HANDLE_FLAG_UNLIMITED", nick = "flag-unlimited")]
UNLIMITED = 1 << 0,
- #[gflags(
+ #[flags_value(
name = "RSVG_HANDLE_FLAG_KEEP_IMAGE_DATA",
nick = "flag-keep-image-data"
)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]