939ef7ef98e9146289b75febf581dc51c7eca8ab
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / metacity / 0002-gconf.patch
1 [PATCH] fix build with --disable-gconf
2
3 src/core/prefs.c still contain a call to gconf_client_set_bool() when
4 built with --disable-gconf, breaking the build.
5
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
7 ---
8  src/core/prefs.c |    2 ++
9  1 file changed, 2 insertions(+)
10
11 Index: metacity-2.25.1/src/core/prefs.c
12 ===================================================================
13 --- metacity-2.25.1.orig/src/core/prefs.c
14 +++ metacity-2.25.1/src/core/prefs.c
15 @@ -2949,6 +2949,7 @@
16  void
17  meta_prefs_set_compositing_manager (gboolean whether)
18  {
19 +#if HAVE_GCONF
20    GError *err = NULL;
21  
22    gconf_client_set_bool (default_client,
23 @@ -2962,6 +2963,7 @@
24                      err->message);
25        g_error_free (err);
26      }
27 +#endif
28  }
29  
30  #ifndef HAVE_GCONF