changeset 352:a9a39f4ca93a

GTK: Add .desktop file creation and PNG icon for Gnome support. This allows recent versions of Gnome to show the correct icon and name for the applications.
author Brian Smith <brian@dbsoft.org>
date Mon, 01 Mar 2021 08:31:52 -0600
parents b8c80d2fa234
children ab9fad4e98cb
files Makefile.in configure configure.in gtk/DWIB.png gtk/org.dbsoft.dwindows.dwib.desktop.in
diffstat 5 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Thu Jan 07 04:04:51 2021 -0600
+++ b/Makefile.in	Mon Mar 01 08:31:52 2021 -0600
@@ -116,6 +116,10 @@
 	sed -e 's/@VERSION@/'$(VER_MAJ).$(VER_MIN).$(VER_REV)'/' < dwib1.pc > dwib.pc
 	$(INSTALL) dwib.pc $(prefix)/lib/pkgconfig; \
 	$(INSTALL) $(TARGET) $(prefix)/bin; \
+	$(MKDIR) -p $(PREFIX)/share/pixmaps/$(TARGET); \
+	$(CP) -f gtk/*.png $(PREFIX)/share/pixmaps/$(TARGET); \
+	$(MKDIR) -p $(PREFIX)/share/applications/; \
+	$(INSTALL) gtk/org.dbsoft.dwindows.dwib.desktop $(PREFIX)/share/applications/; \
 	$(INSTALL) $(SYSCONF_LINK_TARGET_SHARED)  $(prefix)/lib; \
 	cd $(prefix)/lib; \
 	rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ); \
--- a/configure	Thu Jan 07 04:04:51 2021 -0600
+++ b/configure	Mon Mar 01 08:31:52 2021 -0600
@@ -4038,7 +4038,7 @@
 
 
 
-ac_config_files="$ac_config_files Makefile:Makefile.in dwib-config1 dwib1.pc"
+ac_config_files="$ac_config_files Makefile:Makefile.in dwib-config1 dwib1.pc gtk/org.dbsoft.dwindows.dwib.desktop"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -4734,6 +4734,7 @@
     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
     "dwib-config1") CONFIG_FILES="$CONFIG_FILES dwib-config1" ;;
     "dwib1.pc") CONFIG_FILES="$CONFIG_FILES dwib1.pc" ;;
+    "gtk/org.dbsoft.dwindows.dwib.desktop") CONFIG_FILES="$CONFIG_FILES gtk/org.dbsoft.dwindows.dwib.desktop" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   esac
--- a/configure.in	Thu Jan 07 04:04:51 2021 -0600
+++ b/configure.in	Mon Mar 01 08:31:52 2021 -0600
@@ -149,4 +149,4 @@
 
 AC_SUBST(RESOURCE)
 
-AC_OUTPUT(Makefile:Makefile.in dwib-config1 dwib1.pc)
+AC_OUTPUT(Makefile:Makefile.in dwib-config1 dwib1.pc gtk/org.dbsoft.dwindows.dwib.desktop)
Binary file gtk/DWIB.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gtk/org.dbsoft.dwindows.dwib.desktop.in	Mon Mar 01 08:31:52 2021 -0600
@@ -0,0 +1,9 @@
+
+[Desktop Entry]
+Name=Dynamic Windows Interface Builder
+Exec=@prefix@/bin/dwib 
+Icon=@prefix@/share/pixmaps/dwib/DWIB.png
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Application;Development;X-Red-Hat-Base;