Set default icon, update desktop file settings, show icon in about
dialog
This commit is contained in:
daa84 2017-09-21 18:10:48 +03:00
parent 54791aecb1
commit ea71ec2b3f
3 changed files with 5 additions and 2 deletions

View File

@ -5,4 +5,5 @@ Exec=nvim-gtk -- %F
Icon=nvim-gtk Icon=nvim-gtk
Type=Application Type=Application
Terminal=false Terminal=false
Categories=Utility;TextEditor; Categories=GTK;Utility;TextEditor;
StartupNotify=true

View File

@ -71,6 +71,8 @@ fn main() {
app.connect_open(open); app.connect_open(open);
} }
gtk::Window::set_default_icon_name("nvim-gtk");
let args: Vec<String> = env::args().collect(); let args: Vec<String> = env::args().collect();
let argv: Vec<&str> = args.iter() let argv: Vec<&str> = args.iter()
.filter(|a| !a.starts_with(BIN_PATH_ARG)) .filter(|a| !a.starts_with(BIN_PATH_ARG))

View File

@ -165,7 +165,7 @@ fn on_help_about(comps: &Components) {
about.set_transient_for(comps.window.as_ref()); about.set_transient_for(comps.window.as_ref());
about.set_program_name("NeovimGtk"); about.set_program_name("NeovimGtk");
about.set_version(env!("CARGO_PKG_VERSION")); 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.set_authors(&[env!("CARGO_PKG_AUTHORS")]);
about.connect_response(|about, _| about.destroy()); about.connect_response(|about, _| about.destroy());