Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/femtovg_area/imp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl GLAreaImpl for FemtoVGArea {
{
Ok(t) => t,
Err(e) => {
println!("Error while rendering image: {e}");
eprintln!("Error while rendering image: {e}");
return glib::Propagation::Stop;
}
};
Expand All @@ -149,7 +149,7 @@ impl GLAreaImpl for FemtoVGArea {
.expect("Did you call init before using FemtoVgArea?")
.render_framebuffer(canvas, font)
{
println!("Error rendering to framebuffer: {e}");
eprintln!("Error rendering to framebuffer: {e}");
}
glib::Propagation::Stop
}
Expand Down Expand Up @@ -217,7 +217,7 @@ impl FemtoVGArea {
loaded_fonts.push(id);
}
Err(e) => {
println!("Error while loading font. Using default font: {e}");
eprintln!("Error while loading font. Using default font: {e}");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl App {
gtk::style_context_add_provider_for_display(&display, &css_provider2, 1)
}
}
None => println!("Cannot apply style"),
None => eprintln!("Cannot apply style"),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use relm4::gtk::gio::{Notification, prelude::ApplicationExt};
use relm4::gtk::{IconLookupFlags, IconTheme, TextDirection};

pub fn log_result(msg: &str, notify: bool) {
println!("{msg}");
eprintln!("{msg}");
if notify {
show_notification(msg);
}
Expand Down
11 changes: 5 additions & 6 deletions src/sketch_board.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl SketchBoard {
fn handle_save(&self, image: &Pixbuf) {
let mut output_filename = match APP_CONFIG.read().output_filename() {
None => {
println!("No Output filename specified!");
eprintln!("No Output filename specified!");
return;
}
Some(o) => o.clone(),
Expand All @@ -381,7 +381,7 @@ impl SketchBoard {
});

if result.is_err() {
println!(
eprintln!(
"Warning: Could not format filename {output_filename} due to chrono format error, falling back to literal filename."
);
} else {
Expand Down Expand Up @@ -416,7 +416,7 @@ impl SketchBoard {
let data = match image.save_to_bufferv("png", &Vec::new()) {
Ok(d) => d,
Err(e) => {
println!("Error serializing image: {e}");
eprintln!("Error serializing image: {e}");
return;
}
};
Expand Down Expand Up @@ -456,7 +456,7 @@ impl SketchBoard {
let data = match pixbuf.save_to_bufferv("png", &Vec::new()) {
Ok(d) => d,
Err(e) => {
println!("Error serializing image: {e}");
eprintln!("Error serializing image: {e}");
return;
}
};
Expand Down Expand Up @@ -566,7 +566,7 @@ impl SketchBoard {
};

match result {
Err(e) => println!("Error saving {e}"),
Err(e) => eprintln!("Error saving {e}"),
Ok(()) => {
log_result(
"Copied to clipboard.",
Expand Down Expand Up @@ -1142,7 +1142,6 @@ impl Component for SketchBoard {
}
};

// println!(" Result={:?}", result);
match result {
ToolUpdateResult::Commit(drawable) => {
self.renderer.commit(drawable);
Expand Down
Loading