Rename pixbuf_new_from_file! to pixbuf_new_from_png!
This commit is contained in:
parent
0343ec6221
commit
4d4d11ebb1
@ -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;
|
||||
|
@ -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")?,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user