Author: Daniel Baumann <daniel@debian.org>
Description: Adjusts icon directory.

diff -Naurp gadmin-openvpn-server.orig/Makefile.am gadmin-openvpn-server/Makefile.am
--- gadmin-openvpn-server.orig/Makefile.am	2008-09-23 16:38:31.000000000 +0000
+++ gadmin-openvpn-server/Makefile.am	2008-11-16 08:09:15.000000000 +0000
@@ -10,15 +10,15 @@ EXTRA_DIST = \
 install-data-local:
 	@$(NORMAL_INSTALL)
 	if test -d $(srcdir)/pixmaps; then \
-	   $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/gadmin-openvpn-server; \
+	   $(mkinstalldirs) $(DESTDIR)$(datadir)/icons; \
 	   for pixmap in $(srcdir)/pixmaps/*; do \
 	     if test -f $$pixmap; then \
-	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/gadmin-openvpn-server; \
+	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/icons; \
 	     fi \
 	   done \
 	fi;
-	if test -d $(DESTDIR)$(datadir)/pixmaps; then \
-	   cp pixmaps/gadmin-openvpn-server.png $(DESTDIR)$(datadir)/pixmaps/; \
+	if test -d $(DESTDIR)$(datadir)/icons; then \
+	   cp pixmaps/gadmin-openvpn-server.png $(DESTDIR)$(datadir)/icons/; \
 	fi;
 	if test -f $(DESTDIR)$(bindir)/consolehelper && test ! -f $(DESTDIR)$(bindir)/gadmin-openvpn-server; then \
 	   ln -s $(DESTDIR)$(bindir)/consolehelper $(DESTDIR)$(bindir)/gadmin-openvpn-server; \
@@ -55,10 +55,10 @@ install-data-local:
 
 dist-hook:
 	if test -d pixmaps; then \
-	  mkdir $(DESTDIR)$(distdir)/pixmaps; \
+	  mkdir $(DESTDIR)$(distdir)/icons; \
 	  for pixmap in pixmaps/*; do \
 	    if test -f $$pixmap; then \
-	      cp -p $$pixmap $(DESTDIR)$(distdir)/pixmaps; \
+	      cp -p $$pixmap $(DESTDIR)$(distdir)/icons; \
 	    fi \
 	  done \
 	fi
diff -Naurp gadmin-openvpn-server.orig/Makefile.in gadmin-openvpn-server/Makefile.in
--- gadmin-openvpn-server.orig/Makefile.in	2008-11-11 22:06:24.000000000 +0000
+++ gadmin-openvpn-server/Makefile.in	2008-11-16 08:08:49.000000000 +0000
@@ -636,15 +636,15 @@ uninstall-am:
 install-data-local:
 	@$(NORMAL_INSTALL)
 	if test -d $(srcdir)/pixmaps; then \
-	   $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/gadmin-openvpn-server; \
+	   $(mkinstalldirs) $(DESTDIR)$(datadir)/icons; \
 	   for pixmap in $(srcdir)/pixmaps/*; do \
 	     if test -f $$pixmap; then \
-	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/gadmin-openvpn-server; \
+	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/icons; \
 	     fi \
 	   done \
 	fi;
-	if test -d $(DESTDIR)$(datadir)/pixmaps; then \
-	   cp pixmaps/gadmin-openvpn-server.png $(DESTDIR)$(datadir)/pixmaps/; \
+	if test -d $(DESTDIR)$(datadir)/icons; then \
+	   cp pixmaps/gadmin-openvpn-server.png $(DESTDIR)$(datadir)/icons/; \
 	fi;
 	if test -f $(DESTDIR)$(bindir)/consolehelper && test ! -f $(DESTDIR)$(bindir)/gadmin-openvpn-server; then \
 	   ln -s $(DESTDIR)$(bindir)/consolehelper $(DESTDIR)$(bindir)/gadmin-openvpn-server; \
@@ -681,10 +681,10 @@ install-data-local:
 
 dist-hook:
 	if test -d pixmaps; then \
-	  mkdir $(DESTDIR)$(distdir)/pixmaps; \
+	  mkdir $(DESTDIR)$(distdir)/icons; \
 	  for pixmap in pixmaps/*; do \
 	    if test -f $$pixmap; then \
-	      cp -p $$pixmap $(DESTDIR)$(distdir)/pixmaps; \
+	      cp -p $$pixmap $(DESTDIR)$(distdir)/icons; \
 	    fi \
 	  done \
 	fi
diff -Naurp gadmin-openvpn-server.orig/src/create_main_window.c gadmin-openvpn-server/src/create_main_window.c
--- gadmin-openvpn-server.orig/src/create_main_window.c	2008-10-05 21:00:22.000000000 +0000
+++ gadmin-openvpn-server/src/create_main_window.c	2008-11-16 08:09:38.000000000 +0000
@@ -52,7 +52,7 @@ void create_main_window(struct w *widget
     g_free(info);
 
     /* Set the main window icon */
-    pixmap_directory = g_strdup_printf("%s/pixmaps/gadmin-openvpn-server", PACKAGE_DATA_DIR);
+    pixmap_directory = g_strdup_printf("%s/icons", PACKAGE_DATA_DIR);
     add_pixmap_directory(pixmap_directory);
     g_free(pixmap_directory);
 
