Skip to content

Commit

Permalink
Fix #12
Browse files Browse the repository at this point in the history
Set default icon, update desktop file settings, show icon in about
dialog
  • Loading branch information
daa84 committed Sep 21, 2017
1 parent 54791ae commit ea71ec2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion desktop/nvim-gtk.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ Exec=nvim-gtk -- %F
Icon=nvim-gtk
Type=Application
Terminal=false
Categories=Utility;TextEditor;
Categories=GTK;Utility;TextEditor;
StartupNotify=true
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ fn main() {
app.connect_open(open);
}

gtk::Window::set_default_icon_name("nvim-gtk");

let args: Vec<String> = env::args().collect();
let argv: Vec<&str> = args.iter()
.filter(|a| !a.starts_with(BIN_PATH_ARG))
Expand Down
2 changes: 1 addition & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ fn on_help_about(comps: &Components) {
about.set_transient_for(comps.window.as_ref());
about.set_program_name("NeovimGtk");
about.set_version(env!("CARGO_PKG_VERSION"));
about.set_logo(None);
about.set_logo_icon_name("nvim-gtk");
about.set_authors(&[env!("CARGO_PKG_AUTHORS")]);

about.connect_response(|about, _| about.destroy());
Expand Down

0 comments on commit ea71ec2

Please sign in to comment.