Commit 1d4d6b52 authored by Jens Georg's avatar Jens Georg

Use camera's icon on the message pane

parent bb5358af
......@@ -1442,7 +1442,13 @@ public abstract class CheckerboardPage : Page {
public void set_page_message(string message) {
message_pane.label.label = message;
message_pane.icon_image.icon_name = get_view_empty_icon();
try {
message_pane.icon_image.icon_name = null;
message_pane.icon_image.gicon = Icon.new_for_string (get_view_empty_icon());
} catch (Error error) {
message_pane.icon_image.gicon = null;
message_pane.icon_image.icon_name = "image-x-generic-symbolic";
}
stack.set_visible_child_name ("message");
}
......
......@@ -846,6 +846,10 @@ public class ImportPage : CheckerboardPage {
return tracker;
}
protected override string get_view_empty_icon() {
return this.icon;
}
protected override string get_view_empty_message() {
return _("The camera seems to be empty. No photos/videos found to import");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment