File: pixmap-location.patch

package info (click to toggle)
gdmap 0.8.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,384 kB
  • sloc: ansic: 2,777; sh: 1,494; makefile: 36
file content (26 lines) | stat: -rw-r--r-- 916 bytes parent folder | download | duplicates (3)
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
Description: Look in the correct directory for the application's icon
Author: Stephen Kitt <steve@sk2.org>
Last-Update: 2011-03-13

--- gdmap.orig/src/about.c
+++ gdmap/src/about.c
@@ -24,7 +24,7 @@
 #ifdef PACKAGE_SOURCE_DIR
     temp = g_strdup_printf("%s/data/%s", PACKAGE_SOURCE_DIR, filename);
 #else
-    temp = g_strdup_printf("%s/pixmaps/%s", PACKAGE_DATA_DIR, filename);
+    temp = g_strdup_printf("/usr/share/pixmaps/%s", filename);
 #endif
     pix = gdk_pixbuf_new_from_file(temp, NULL);
     g_free(temp);
--- gdmap.orig/src/gui_main.c
+++ gdmap/src/gui_main.c
@@ -829,7 +829,7 @@
 #ifdef PACKAGE_SOURCE_DIR
     temp = g_strdup_printf("%s/data/%s", PACKAGE_SOURCE_DIR, filename);
 #else
-    temp = g_strdup_printf("%s/pixmaps/%s", PACKAGE_DATA_DIR, filename);
+    temp = g_strdup_printf("/usr/share/pixmaps/%s", filename);
 #endif
     pix = gdk_pixbuf_new_from_file(temp, NULL);
     g_free(temp);