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

diff -Naurp gadmin-samba.orig/Makefile.am gadmin-samba/Makefile.am
--- gadmin-samba.orig/Makefile.am	2009-08-19 20:23:26.000000000 +0000
+++ gadmin-samba/Makefile.am	2009-08-20 07:46:04.000000000 +0000
@@ -10,15 +10,15 @@ EXTRA_DIST = \
 install-data-local:
 	@$(NORMAL_INSTALL)
 	if test -d $(srcdir)/pixmaps; then \
-	   $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/gadmin-samba; \
+	   $(mkinstalldirs) $(DESTDIR)$(datadir)/icons; \
 	   for pixmap in $(srcdir)/pixmaps/*; do \
 	     if test -f $$pixmap; then \
-	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/gadmin-samba; \
+	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/icons; \
 	     fi \
 	   done \
 	fi;
-	if test -d $(DESTDIR)$(datadir)/pixmaps; then \
-	   cp $(srcdir)/pixmaps/gadmin-samba.png $(DESTDIR)$(datadir)/pixmaps/; \
+	if test -d $(DESTDIR)$(datadir)/icons; then \
+	   cp $(srcdir)/pixmaps/gadmin-samba.png $(DESTDIR)$(datadir)/icons/; \
 	fi;
 	if test -f $(DESTDIR)$(bindir)/consolehelper && test ! -f $(DESTDIR)$(bindir)/gadmin-samba; then \
 	   ln -s $(DESTDIR)$(bindir)/consolehelper $(DESTDIR)$(bindir)/gadmin-samba; \
diff -Naurp gadmin-samba.orig/Makefile.in gadmin-samba/Makefile.in
--- gadmin-samba.orig/Makefile.in	2009-08-19 20:23:26.000000000 +0000
+++ gadmin-samba/Makefile.in	2009-08-20 07:46:04.000000000 +0000
@@ -635,15 +635,15 @@ uninstall-am:
 install-data-local:
 	@$(NORMAL_INSTALL)
 	if test -d $(srcdir)/pixmaps; then \
-	   $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/gadmin-samba; \
+	   $(mkinstalldirs) $(DESTDIR)$(datadir)/icons; \
 	   for pixmap in $(srcdir)/pixmaps/*; do \
 	     if test -f $$pixmap; then \
-	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/gadmin-samba; \
+	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/icons; \
 	     fi \
 	   done \
 	fi;
-	if test -d $(DESTDIR)$(datadir)/pixmaps; then \
-	   cp $(srcdir)/pixmaps/gadmin-samba.png $(DESTDIR)$(datadir)/pixmaps/; \
+	if test -d $(DESTDIR)$(datadir)/icons; then \
+	   cp $(srcdir)/pixmaps/gadmin-samba.png $(DESTDIR)$(datadir)/icons/; \
 	fi;
 	if test -f $(DESTDIR)$(bindir)/consolehelper && test ! -f $(DESTDIR)$(bindir)/gadmin-samba; then \
 	   ln -s $(DESTDIR)$(bindir)/consolehelper $(DESTDIR)$(bindir)/gadmin-samba; \
diff -Naurp gadmin-samba.orig/src/create_main_window.c gadmin-samba/src/create_main_window.c
--- gadmin-samba.orig/src/create_main_window.c	2009-08-19 20:23:26.000000000 +0000
+++ gadmin-samba/src/create_main_window.c	2009-08-20 07:46:04.000000000 +0000
@@ -55,7 +55,7 @@ void create_main_window(struct w *widget
     g_free(info);
 
     /* Set the main window icon */    
-    pixmap_directory = g_strdup_printf("%s/pixmaps/gadmin-samba", PACKAGE_DATA_DIR);
+    pixmap_directory = g_strdup_printf("%s/icons", PACKAGE_DATA_DIR);
     add_pixmap_directory(pixmap_directory);
     g_free(pixmap_directory);
 
