Skip to content

Commit

Permalink
fix up .desktop file
Browse files Browse the repository at this point in the history
and add an icon
  • Loading branch information
jcupitt committed Jun 14, 2017
1 parent 4953eac commit 434c148
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 7 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
started 8.5.2 14/6/17
- install icon, fix icon in desktop file

started 8.5.1 22/1/17
- fix a crash bug
- make separate Image / Alpha menu, add Add, Extract, Drop
Expand Down
2 changes: 2 additions & 0 deletions Makefile.am
Expand Up @@ -37,6 +37,8 @@ if UPDATE_DESKTOP
install-data-hook:
-$(UPDATE_MIME_DATABASE) ${DESTDIR}$(datadir)/mime
-$(UPDATE_DESKTOP_DATABASE) ${DESTDIR}$(datadir)/applications
$(mkinstalldirs) ${DESTDIR}$(datadir)/icons/hicolor/128x128/apps
-cp share/nip2/data/nip2.png ${DESTDIR}$(datadir)/icons/hicolor/128x128/apps
endif

dist-hook:
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
@@ -1,6 +1,6 @@
# Process this file with autoconf to produce a configure script.

AC_INIT([nip2], [8.5.1], [vipsip@jiscmail.ac.uk])
AC_INIT([nip2], [8.5.2], [vipsip@jiscmail.ac.uk])

# foreign stops complaints about a missing README (we use README.md instead)
# and missing INSTALL (the standard Gnu INSTALL is not very useful)
Expand All @@ -17,7 +17,7 @@ dnl

m4_define([nip_major_version], [8])
m4_define([nip_minor_version], [5])
m4_define([nip_micro_version], [1])
m4_define([nip_micro_version], [2])
m4_define([nip_version],
[nip_major_version.nip_minor_version.nip_micro_version])

Expand Down
2 changes: 1 addition & 1 deletion nip2.desktop.in
Expand Up @@ -3,7 +3,7 @@ Name=@PACKAGE@
Comment=Image manipulation program based on VIPS
Comment[it]=Programma per la manipolazione di immagini basato su VIPS
Exec=nip2 %F
Icon=nip2
Icon=nip2.png
Terminal=false
Type=Application
Categories=Graphics;RasterGraphics;
Expand Down
2 changes: 1 addition & 1 deletion share/nip2/data/Makefile.am
Expand Up @@ -6,7 +6,7 @@ nipdata_DATA = \
sRGB.icm \
macbeth_lab_d65.mat \
macbeth_lab_d50.mat \
vips-128.png \
nip2.png \
nip2-icon.ico \
cmyk.icm \
stock-tool-ink-22.png \
Expand Down
File renamed without changes
3 changes: 1 addition & 2 deletions src/boxes.c
Expand Up @@ -367,8 +367,7 @@ about_build( iDialog *idlg, GtkWidget *work )
gtk_container_add( GTK_CONTAINER( work ), hb );
gtk_widget_show( hb );

image = image_new_from_file(
"$VIPSHOME/share/$PACKAGE/data/vips-128.png" );
image = image_new_from_file( "$VIPSHOME/share/$PACKAGE/data/nip2.png" );
gtk_box_pack_start( GTK_BOX( hb ), image, FALSE, FALSE, 2 );
gtk_widget_show( image );

Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Expand Up @@ -794,7 +794,7 @@ main_x_init( int *argc, char ***argv )
/* Set the default icon.
*/
im_strncpy( buf,
"$VIPSHOME/share/$PACKAGE/data/vips-128.png", FILENAME_MAX );
"$VIPSHOME/share/$PACKAGE/data/nip2.png", FILENAME_MAX );
path_expand( buf );
gtk_window_set_default_icon_from_file( buf, NULL );

Expand Down

0 comments on commit 434c148

Please sign in to comment.