File: 01-icondir.patch

package info (click to toggle)
gadmin-rsync 0.1.7-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,500 kB
  • sloc: ansic: 5,259; sh: 3,215; makefile: 120
file content (64 lines) | stat: -rw-r--r-- 2,977 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Author: Daniel Baumann <daniel@debian.org>
Description: Adjusts icon directory.

Index: gadmin-rsync-0.1.7/Makefile.am
===================================================================
--- gadmin-rsync-0.1.7.orig/Makefile.am	2011-03-10 01:34:21.368235378 +0700
+++ gadmin-rsync-0.1.7/Makefile.am	2011-03-10 01:32:38.488717869 +0700
@@ -10,15 +10,15 @@
 install-data-local:
 	@$(NORMAL_INSTALL)
 	if test -d $(srcdir)/pixmaps; then \
-	   $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/gadmin-rsync; \
+	   $(mkinstalldirs) $(DESTDIR)$(datadir)/icons; \
 	   for pixmap in $(srcdir)/pixmaps/*; do \
 	     if test -f $$pixmap; then \
-	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/gadmin-rsync; \
+	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/icons; \
 	     fi \
 	   done \
 	fi;
-	if test -d $(DESTDIR)$(datadir)/pixmaps; then \
-	   cp pixmaps/gadmin-rsync.png $(DESTDIR)$(datadir)/pixmaps/; \
+	if test -d $(DESTDIR)$(datadir)/icons; then \
+	   cp pixmaps/gadmin-rsync.png $(DESTDIR)$(datadir)/icons/; \
 	fi;
 	if test -f $(DESTDIR)$(bindir)/consolehelper && test ! -f $(DESTDIR)$(bindir)/gadmin-rsync; then \
 	   ln -s $(DESTDIR)$(bindir)/consolehelper $(DESTDIR)$(bindir)/gadmin-rsync; \
Index: gadmin-rsync-0.1.7/Makefile.in
===================================================================
--- gadmin-rsync-0.1.7.orig/Makefile.in	2011-03-10 01:34:21.420228233 +0700
+++ gadmin-rsync-0.1.7/Makefile.in	2011-03-10 01:33:24.496217432 +0700
@@ -713,15 +713,15 @@
 install-data-local:
 	@$(NORMAL_INSTALL)
 	if test -d $(srcdir)/pixmaps; then \
-	   $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/gadmin-rsync; \
+	   $(mkinstalldirs) $(DESTDIR)$(datadir)/icons; \
 	   for pixmap in $(srcdir)/pixmaps/*; do \
 	     if test -f $$pixmap; then \
-	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/gadmin-rsync; \
+	        $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/icons; \
 	     fi \
 	   done \
 	fi;
-	if test -d $(DESTDIR)$(datadir)/pixmaps; then \
-	   cp pixmaps/gadmin-rsync.png $(DESTDIR)$(datadir)/pixmaps/; \
+	if test -d $(DESTDIR)$(datadir)/icons; then \
+	   cp pixmaps/gadmin-rsync.png $(DESTDIR)$(datadir)/icons/; \
 	fi;
 	if test -f $(DESTDIR)$(bindir)/consolehelper && test ! -f $(DESTDIR)$(bindir)/gadmin-rsync; then \
 	   ln -s $(DESTDIR)$(bindir)/consolehelper $(DESTDIR)$(bindir)/gadmin-rsync; \
Index: gadmin-rsync-0.1.7/src/create_main_window.c
===================================================================
--- gadmin-rsync-0.1.7.orig/src/create_main_window.c	2011-03-10 01:34:21.140233349 +0700
+++ gadmin-rsync-0.1.7/src/create_main_window.c	2011-03-10 01:34:12.692218513 +0700
@@ -51,7 +51,7 @@
     g_free(info);
 
     /* Set the main window icon */    
-    pixmap_directory = g_strdup_printf("%s/pixmaps/gadmin-rsync", PACKAGE_DATA_DIR);
+    pixmap_directory = g_strdup_printf("%s/icons", PACKAGE_DATA_DIR);
     add_pixmap_directory(pixmap_directory);
     g_free(pixmap_directory);