Skip to content

Commit

Permalink
gdk: Rename GdkCairoContextExt::set_source_{rgba => color}
Browse files Browse the repository at this point in the history
  • Loading branch information
RealKC committed Aug 22, 2023
1 parent 25988d6 commit 4d3f8db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gdk4/src/cairo_interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 4d3f8db

Please sign in to comment.