Rename pixbuf_new_from_file! to pixbuf_new_from_png!

This commit is contained in:
Julian Ospald 2017-07-15 01:19:27 +02:00
parent 0343ec6221
commit 4d4d11ebb1
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@ pub fn pixbuf_new_from_theme(icon_name: &str,
#[macro_export]
/// Create a pixbuf from the given PNG file. Includes the file as bytes
/// in the binary and decodes it.
macro_rules! pixbuf_new_from_file {
macro_rules! pixbuf_new_from_png {
($name:expr) => {
{
use gdk_pixbuf;

View File

@ -348,11 +348,11 @@ impl AudioPix {
}
} else {
AudioPix {
muted: pixbuf_new_from_file!("../data/pixmaps/pnmixer-muted.png")?,
low: pixbuf_new_from_file!("../data/pixmaps/pnmixer-low.png")?,
medium: pixbuf_new_from_file!("../data/pixmaps/pnmixer-medium.png")?,
high: pixbuf_new_from_file!("../data/pixmaps/pnmixer-high.png")?,
off: pixbuf_new_from_file!("../data/pixmaps/pnmixer-off.png")?,
muted: pixbuf_new_from_png!("../data/pixmaps/pnmixer-muted.png")?,
low: pixbuf_new_from_png!("../data/pixmaps/pnmixer-low.png")?,
medium: pixbuf_new_from_png!("../data/pixmaps/pnmixer-medium.png")?,
high: pixbuf_new_from_png!("../data/pixmaps/pnmixer-high.png")?,
off: pixbuf_new_from_png!("../data/pixmaps/pnmixer-off.png")?,
}
}
};