From 4d3f8db888af34510496728f70885d30807472cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C8=9Bca=20Dumitru?= Date: Tue, 22 Aug 2023 19:35:58 +0300 Subject: [PATCH] gdk: Rename `GdkCairoContextExt::set_source_{rgba => color}` --- gdk4/src/cairo_interaction.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gdk4/src/cairo_interaction.rs b/gdk4/src/cairo_interaction.rs index 17e60fb4006e..fc949ccd0011 100644 --- a/gdk4/src/cairo_interaction.rs +++ b/gdk4/src/cairo_interaction.rs @@ -45,7 +45,8 @@ pub trait GdkCairoContextExt { ); #[doc(alias = "gdk_cairo_set_source_rgba")] - fn set_source_rgba(&self, rgba: &RGBA); + #[doc(alias = "set_source_rgba")] + fn set_source_color(&self, rgba: &RGBA); #[doc(alias = "gdk_cairo_set_source_pixbuf")] fn set_source_pixbuf(&self, pixbuf: &Pixbuf, x: f64, y: f64); @@ -83,7 +84,7 @@ impl GdkCairoContextExt for Context { ); } - fn set_source_rgba(&self, rgba: &RGBA) { + fn set_source_color(&self, rgba: &RGBA) { unsafe { ffi::gdk_cairo_set_source_rgba(self.to_glib_none().0, rgba.to_glib_none().0); }