Fix gnome panel issues (#12)
Display icon for application Allow application to be pinned
This commit is contained in:
parent
ea71ec2b3f
commit
dd62733e66
6
Makefile
6
Makefile
@ -13,10 +13,10 @@ install-resources:
|
||||
mkdir -p $(PREFIX)/share/nvim-gtk/
|
||||
cp -r runtime $(PREFIX)/share/nvim-gtk/
|
||||
mkdir -p $(PREFIX)/share/applications/
|
||||
cp desktop/nvim-gtk.desktop $(PREFIX)/share/applications/
|
||||
sed -i "s|Exec=nvim-gtk|Exec=$(PREFIX)/bin/nvim-gtk|" $(PREFIX)/share/applications/nvim-gtk.desktop
|
||||
cp desktop/org.daa.NeovimGtk.desktop $(PREFIX)/share/applications/
|
||||
sed -i "s|Exec=nvim-gtk|Exec=$(PREFIX)/bin/nvim-gtk|" $(PREFIX)/share/applications/org.daa.NeovimGtk.desktop
|
||||
mkdir -p $(PREFIX)/share/icons/hicolor/128x128/apps/
|
||||
cp desktop/nvim-gtk.png $(PREFIX)/share/icons/hicolor/128x128/apps/
|
||||
cp desktop/org.daa.NeovimGtk.png $(PREFIX)/share/icons/hicolor/128x128/apps/
|
||||
mkdir -p $(PREFIX)/share/fonts/
|
||||
cp -n desktop/dejavu_font/*.ttf $(PREFIX)/share/fonts/
|
||||
fc-cache -fv
|
||||
|
@ -2,7 +2,7 @@
|
||||
Name=NeovimGtk
|
||||
Comment=Gtk GUI for Neovim text editor
|
||||
Exec=nvim-gtk -- %F
|
||||
Icon=nvim-gtk
|
||||
Icon=org.daa.NeovimGtk
|
||||
Type=Application
|
||||
Terminal=false
|
||||
Categories=GTK;Utility;TextEditor;
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
@ -71,8 +71,6 @@ 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))
|
||||
|
@ -125,7 +125,7 @@ impl Ui {
|
||||
window.add(&**shell);
|
||||
|
||||
window.show_all();
|
||||
window.set_title("NeoVim-gtk");
|
||||
window.set_title("NeovimGtk");
|
||||
|
||||
let comps_ref = self.comps.clone();
|
||||
let shell_ref = self.shell.clone();
|
||||
@ -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_icon_name("nvim-gtk");
|
||||
about.set_logo_icon_name("org.daa.NeovimGtk");
|
||||
about.set_authors(&[env!("CARGO_PKG_AUTHORS")]);
|
||||
|
||||
about.connect_response(|about, _| about.destroy());
|
||||
|
Loading…
Reference in New Issue
Block a user