b4da66409cda57309db05c36841d15c44c0ac63e
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / matchbox / matchbox-wm / 0001-defaulttheme.patch
1 [PATCH] fix mbtheme build issue when png support is disabled
2
3 DEFAULTTHEME{,NAME} is not defined when png support is disabled, leading
4 to compile errors in mbtheme.c:
5
6 mbtheme.c: In function 'show_parse_error':
7 mbtheme.c:2422:28: error: 'DEFAULTTHEME' undeclared (first use in this function)
8 mbtheme.c:2422:28: note: each undeclared identifier is reported only once for each function it appears in
9 mbtheme.c: In function 'mbtheme_init':
10 mbtheme.c:2448:30: error: 'DEFAULTTHEME' undeclared (first use in this function)
11 mbtheme.c:2470:25: error: 'DEFAULTTHEMENAME' undeclared (first use in this function)
12
13 Fix it by unconditionally defining them as the values used are the same
14 in png / !png cases anyway.
15
16 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
17 ---
18  src/structs.h |    9 ---------
19  1 file changed, 9 deletions(-)
20
21 Index: matchbox-window-manager-1.2/src/structs.h
22 ===================================================================
23 --- matchbox-window-manager-1.2.orig/src/structs.h
24 +++ matchbox-window-manager-1.2/src/structs.h
25 @@ -81,8 +81,6 @@
26  
27  #define GENERIC_ICON        PKGDATADIR "/mbnoapp.xpm"
28  
29 -#ifdef MB_HAVE_PNG
30 -
31  #define DEFAULT_THEME       DATADIR "/themes/Default/matchbox/theme.xml"
32  
33  #define DEFAULTTHEME       DATADIR "/themes/Default/matchbox/theme.xml"
34 @@ -91,13 +89,6 @@
35  
36  #define DEFAULTTHEMENAME  "Default"
37  
38 -#else
39 -
40 -#define DEFAULT_THEME       DATADIR "/themes/Default/matchbox/theme.xml"
41 -#define DEFAULT_THEME_NAME  "Default"
42 -
43 -#endif
44 -
45  #define CONFDEFAULTS       PKGDATADIR "/defaults"
46  
47  /* Simple Macros  */