/[gentoo-x86]/gnome-base/gnome-control-center/files/gnome-control-center-3.8.0-paths.patch
Gentoo

Contents of /gnome-base/gnome-control-center/files/gnome-control-center-3.8.0-paths.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Mar 28 23:08:07 2013 UTC (21 months ago) by pacho
Branch: MAIN
Version bump for Gnome 3.8

(Portage version: 2.1.11.58/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 Use Gentoo-appropriate absolute paths
2
3 Original author: Alexandre Rostovtsev <tetromino@gentoo.org>
4 ---
5
6 --- a/panels/datetime/test-endianess.c
7 +++ b/panels/datetime/test-endianess.c
8 @@ -38,11 +38,11 @@
9 return 0;
10 }
11
12 - dir = g_dir_open ("/usr/share/i18n/locales/", 0, NULL);
13 + dir = g_dir_open (REALDATADIR "/i18n/locales/", 0, NULL);
14 if (dir == NULL) {
15 /* Try with /usr/share/locale/
16 * https://bugzilla.gnome.org/show_bug.cgi?id=646780 */
17 - dir = g_dir_open ("/usr/share/locale/", 0, NULL);
18 + dir = g_dir_open (REALDATADIR "/locale/", 0, NULL);
19 if (dir == NULL) {
20 return 1;
21 }
22 --- a/panels/datetime/test-timezone.c
23 +++ b/panels/datetime/test-timezone.c
24 @@ -1,7 +1,7 @@
25 #include <gtk/gtk.h>
26 #include "cc-timezone-map.h"
27
28 -#define TZ_DIR "/usr/share/zoneinfo/"
29 +#define TZ_DIR REALDATADIR "/zoneinfo/"
30
31 static GList *
32 get_timezone_list (GList *tzs,
33 --- a/panels/datetime/tz.h
34 +++ b/panels/datetime/tz.h
35 @@ -29,9 +29,9 @@
36 #include <glib.h>
37
38 #ifndef __sun
39 -# define TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"
40 +# define TZ_DATA_FILE REALDATADIR "/zoneinfo/zone.tab"
41 #else
42 -# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab"
43 +# define TZ_DATA_FILE REALDATADIR "/lib/zoneinfo/tab/zone_sun.tab"
44 #endif
45
46 typedef struct _TzDB TzDB;
47 --- a/panels/printers/cc-printers-panel.c
48 +++ b/panels/printers/cc-printers-panel.c
49 @@ -2199,8 +2199,8 @@
50
51 if (printer_name)
52 {
53 - const gchar *const dirs[] = { "/usr/share/cups",
54 - "/usr/local/share/cups",
55 + const gchar *const dirs[] = { REALDATADIR "/cups",
56 + PREFIX "/local/share/cups",
57 NULL };
58 const gchar *testprint[] = { "%s/data/testprint",
59 "%s/data/testprint.ps",
60 --- a/panels/printers/pp-host.c
61 +++ b/panels/printers/pp-host.c
62 @@ -251,7 +251,7 @@
63 data->devices->devices = NULL;
64
65 argv = g_new0 (gchar *, 3);
66 - argv[0] = g_strdup ("/usr/lib/cups/backend/snmp");
67 + argv[0] = g_strdup (LIBEXECDIR "/cups/backend/snmp");
68 argv[1] = g_strdup (priv->hostname);
69
70 /* Use SNMP to get printer's informations */

  ViewVC Help
Powered by ViewVC 1.1.20