Merge lp:~dobey/ubuntu/oneiric/ubuntuone-client-gnome/release-200 into lp:ubuntu/oneiric/ubuntuone-client-gnome

Proposed by dobey
Status: Merged
Merged at revision: 5
Proposed branch: lp:~dobey/ubuntu/oneiric/ubuntuone-client-gnome/release-200
Merge into: lp:ubuntu/oneiric/ubuntuone-client-gnome
Diff against target: 1994 lines (+1031/-141)
23 files modified
Makefile.am (+7/-0)
Makefile.in (+69/-11)
aclocal.m4 (+84/-0)
config.h.in (+3/-0)
configure (+583/-55)
configure.ac (+31/-8)
debian/changelog (+15/-0)
debian/control (+5/-4)
debian/ubuntuone.gschema.override (+0/-4)
gsd/Makefile.am (+15/-0)
gsd/Makefile.in (+14/-0)
gsd/gsd-ubuntuone.c (+56/-29)
gsd/gsd-ubuntuone.gschema.xml.in.in (+14/-0)
nautilus/Makefile.in (+3/-0)
nautilus/contacts-view.c (+42/-7)
nautilus/contacts-view.h (+10/-1)
nautilus/context-menu.c (+8/-0)
nautilus/location-widget.c (+25/-4)
nautilus/location-widget.h (+12/-1)
nautilus/share-dialog.c (+11/-12)
nautilus/u1-contacts-picker.c (+3/-3)
nautilus/utils.c (+12/-2)
ubuntuone-client-gnome.convert (+9/-0)
To merge this branch: bzr merge lp:~dobey/ubuntu/oneiric/ubuntuone-client-gnome/release-200
Reviewer Review Type Date Requested Status
Ubuntu Development Team Pending
Review via email: mp+77216@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile.am'
2--- Makefile.am 2011-08-11 12:52:11 +0000
3+++ Makefile.am 2011-09-27 18:40:29 +0000
4@@ -3,6 +3,13 @@
5 # Shut libtoolize up
6 ACLOCAL_AMFLAGS = -I m4
7
8+# GConf->GSettings data migration
9+convert_DATA = ubuntuone-client-gnome.convert
10+convertdir = $(datadir)/GConf/gsettings
11+
12+EXTRA_DIST = \
13+ $(convert_DATA)
14+
15 MAINTAINERCLEANFILES = \
16 Makefile.in \
17 aclocal.m4 \
18
19=== modified file 'Makefile.in'
20--- Makefile.in 2011-08-11 12:52:11 +0000
21+++ Makefile.in 2011-09-27 18:40:29 +0000
22@@ -14,6 +14,7 @@
23 # PARTICULAR PURPOSE.
24
25 @SET_MAKE@
26+
27 VPATH = @srcdir@
28 pkgdatadir = $(datadir)/@PACKAGE@
29 pkgincludedir = $(includedir)/@PACKAGE@
30@@ -66,6 +67,29 @@
31 install-pdf-recursive install-ps-recursive install-recursive \
32 installcheck-recursive installdirs-recursive pdf-recursive \
33 ps-recursive uninstall-recursive
34+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
35+am__vpath_adj = case $$p in \
36+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
37+ *) f=$$p;; \
38+ esac;
39+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
40+am__install_max = 40
41+am__nobase_strip_setup = \
42+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
43+am__nobase_strip = \
44+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
45+am__nobase_list = $(am__nobase_strip_setup); \
46+ for p in $$list; do echo "$$p $$p"; done | \
47+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
48+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
49+ if (++n[$$2] == $(am__install_max)) \
50+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
51+ END { for (dir in files) print dir, files[dir] }'
52+am__base_list = \
53+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
54+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
55+am__installdirs = "$(DESTDIR)$(convertdir)"
56+DATA = $(convert_DATA)
57 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
58 distclean-recursive maintainer-clean-recursive
59 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
60@@ -143,11 +167,13 @@
61 EXEEXT = @EXEEXT@
62 FGREP = @FGREP@
63 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
64+GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
65 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
66 GMSGFMT = @GMSGFMT@
67 GREP = @GREP@
68 GSD_INTLTOOL_PLUGIN_RULE = @GSD_INTLTOOL_PLUGIN_RULE@
69 GSD_PLUGINDIR_NAME = @GSD_PLUGINDIR_NAME@
70+GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@
71 INSTALL = @INSTALL@
72 INSTALL_DATA = @INSTALL_DATA@
73 INSTALL_PROGRAM = @INSTALL_PROGRAM@
74@@ -222,6 +248,7 @@
75 docdir = @docdir@
76 dvidir = @dvidir@
77 exec_prefix = @exec_prefix@
78+gsettingsschemadir = @gsettingsschemadir@
79 host = @host@
80 host_alias = @host_alias@
81 host_cpu = @host_cpu@
82@@ -252,6 +279,13 @@
83 top_builddir = @top_builddir@
84 top_srcdir = @top_srcdir@
85 SUBDIRS = gsd nautilus po
86+
87+# GConf->GSettings data migration
88+convert_DATA = ubuntuone-client-gnome.convert
89+convertdir = $(datadir)/GConf/gsettings
90+EXTRA_DIST = \
91+ $(convert_DATA)
92+
93 MAINTAINERCLEANFILES = \
94 Makefile.in \
95 aclocal.m4 \
96@@ -330,6 +364,26 @@
97
98 distclean-libtool:
99 -rm -f libtool config.lt
100+install-convertDATA: $(convert_DATA)
101+ @$(NORMAL_INSTALL)
102+ test -z "$(convertdir)" || $(MKDIR_P) "$(DESTDIR)$(convertdir)"
103+ @list='$(convert_DATA)'; test -n "$(convertdir)" || list=; \
104+ for p in $$list; do \
105+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
106+ echo "$$d$$p"; \
107+ done | $(am__base_list) | \
108+ while read files; do \
109+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(convertdir)'"; \
110+ $(INSTALL_DATA) $$files "$(DESTDIR)$(convertdir)" || exit $$?; \
111+ done
112+
113+uninstall-convertDATA:
114+ @$(NORMAL_UNINSTALL)
115+ @list='$(convert_DATA)'; test -n "$(convertdir)" || list=; \
116+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
117+ test -n "$$files" || exit 0; \
118+ echo " ( cd '$(DESTDIR)$(convertdir)' && rm -f" $$files ")"; \
119+ cd "$(DESTDIR)$(convertdir)" && rm -f $$files
120
121 # This directory's subdirectories are mostly independent; you can cd
122 # into them and run `make' without going through this Makefile.
123@@ -643,9 +697,12 @@
124 exit 1; } >&2
125 check-am: all-am
126 check: check-recursive
127-all-am: Makefile config.h
128+all-am: Makefile $(DATA) config.h
129 installdirs: installdirs-recursive
130 installdirs-am:
131+ for dir in "$(DESTDIR)$(convertdir)"; do \
132+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
133+ done
134 install: install-recursive
135 install-exec: install-exec-recursive
136 install-data: install-data-recursive
137@@ -694,7 +751,7 @@
138
139 info-am:
140
141-install-data-am:
142+install-data-am: install-convertDATA
143
144 install-dvi: install-dvi-recursive
145
146@@ -740,7 +797,7 @@
147
148 ps-am:
149
150-uninstall-am:
151+uninstall-am: uninstall-convertDATA
152
153 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
154 ctags-recursive install-am install-strip tags-recursive
155@@ -752,14 +809,15 @@
156 distcheck distclean distclean-generic distclean-hdr \
157 distclean-libtool distclean-tags distcleancheck distdir \
158 distuninstallcheck dvi dvi-am html html-am info info-am \
159- install install-am install-data install-data-am install-dvi \
160- install-dvi-am install-exec install-exec-am install-html \
161- install-html-am install-info install-info-am install-man \
162- install-pdf install-pdf-am install-ps install-ps-am \
163- install-strip installcheck installcheck-am installdirs \
164- installdirs-am maintainer-clean maintainer-clean-generic \
165- mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
166- ps ps-am tags tags-recursive uninstall uninstall-am
167+ install install-am install-convertDATA install-data \
168+ install-data-am install-dvi install-dvi-am install-exec \
169+ install-exec-am install-html install-html-am install-info \
170+ install-info-am install-man install-pdf install-pdf-am \
171+ install-ps install-ps-am install-strip installcheck \
172+ installcheck-am installdirs installdirs-am maintainer-clean \
173+ maintainer-clean-generic mostlyclean mostlyclean-generic \
174+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
175+ uninstall uninstall-am uninstall-convertDATA
176
177
178 # Tell versions [3.59,3.63) of GNU make to not export all variables.
179
180=== modified file 'aclocal.m4'
181--- aclocal.m4 2011-08-11 12:52:11 +0000
182+++ aclocal.m4 2011-09-27 18:40:29 +0000
183@@ -19,6 +19,90 @@
184 If you have problems, you may need to regenerate the build system entirely.
185 To do so, use the procedure documented by the package, typically `autoreconf'.])])
186
187+dnl GLIB_GSETTINGS
188+dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
189+dnl the schema should be compiled
190+dnl
191+
192+AC_DEFUN([GLIB_GSETTINGS],
193+[
194+ m4_pattern_allow([AM_V_GEN])
195+ AC_ARG_ENABLE(schemas-compile,
196+ AC_HELP_STRING([--disable-schemas-compile],
197+ [Disable regeneration of gschemas.compiled on install]),
198+ [case ${enableval} in
199+ yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
200+ no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
201+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
202+ esac])
203+ AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
204+ PKG_PROG_PKG_CONFIG([0.16])
205+ AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
206+ if test x$cross_compiling != xyes; then
207+ GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
208+ else
209+ AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
210+ fi
211+ AC_SUBST(GLIB_COMPILE_SCHEMAS)
212+ if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
213+ ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
214+ else
215+ ifelse([$1],,[:],[$1])
216+ fi
217+
218+ GSETTINGS_RULES='
219+.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
220+
221+mostlyclean-am: clean-gsettings-schemas
222+
223+gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
224+
225+%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
226+ $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
227+
228+all-am: $(gsettings_SCHEMAS:.xml=.valid)
229+uninstall-am: uninstall-gsettings-schemas
230+install-data-am: install-gsettings-schemas
231+
232+.SECONDARY: $(gsettings_SCHEMAS)
233+
234+install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
235+ @$(NORMAL_INSTALL)
236+ if test -n "$^"; then \
237+ test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
238+ $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
239+ test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
240+ fi
241+
242+uninstall-gsettings-schemas:
243+ @$(NORMAL_UNINSTALL)
244+ @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
245+ files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
246+ test -n "$$files" || exit 0; \
247+ echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
248+ cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
249+ test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
250+
251+clean-gsettings-schemas:
252+ rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
253+
254+ifdef gsettings_ENUM_NAMESPACE
255+$(gsettings__enum_file): $(gsettings_ENUM_FILES)
256+ $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
257+endif
258+'
259+ _GSETTINGS_SUBST(GSETTINGS_RULES)
260+])
261+
262+dnl _GSETTINGS_SUBST(VARIABLE)
263+dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
264+AC_DEFUN([_GSETTINGS_SUBST],
265+[
266+AC_SUBST([$1])
267+m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
268+]
269+)
270+
271 # nls.m4 serial 5 (gettext-0.18)
272 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
273 dnl Inc.
274
275=== modified file 'config.h.in'
276--- config.h.in 2011-08-11 12:52:11 +0000
277+++ config.h.in 2011-09-27 18:40:29 +0000
278@@ -18,6 +18,9 @@
279 /* Define to 1 if you have the <memory.h> header file. */
280 #undef HAVE_MEMORY_H
281
282+/* If using nautilus 3.0 or newer */
283+#undef HAVE_NAUTILUS_30
284+
285 /* Define to 1 if you have the <stdint.h> header file. */
286 #undef HAVE_STDINT_H
287
288
289=== modified file 'configure'
290--- configure 2011-08-11 12:52:11 +0000
291+++ configure 2011-09-27 18:40:29 +0000
292@@ -1,6 +1,6 @@
293 #! /bin/sh
294 # Guess values for system-dependent variables and create Makefiles.
295-# Generated by GNU Autoconf 2.67 for ubuntuone-client-gnome 1.7.1.
296+# Generated by GNU Autoconf 2.67 for ubuntuone-client-gnome 2.0.0.
297 #
298 #
299 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
300@@ -698,8 +698,8 @@
301 # Identity of this package.
302 PACKAGE_NAME='ubuntuone-client-gnome'
303 PACKAGE_TARNAME='ubuntuone-client-gnome'
304-PACKAGE_VERSION='1.7.1'
305-PACKAGE_STRING='ubuntuone-client-gnome 1.7.1'
306+PACKAGE_VERSION='2.0.0'
307+PACKAGE_STRING='ubuntuone-client-gnome 2.0.0'
308 PACKAGE_BUGREPORT=''
309 PACKAGE_URL=''
310
311@@ -748,6 +748,8 @@
312 GSD_PLUGINDIR_NAME
313 SETTINGS_PLUGIN_LIBS
314 SETTINGS_PLUGIN_CFLAGS
315+HAVE_GSD_30_FALSE
316+HAVE_GSD_30_TRUE
317 GLIB_GENMARSHAL
318 DISTCHECK_CONFIGURE_FLAGS
319 DBUS_LIBS
320@@ -755,6 +757,12 @@
321 NAUTILUS_EXTENSIONDIR_NAME
322 NAUTILUS_LIBS
323 NAUTILUS_CFLAGS
324+HAVE_NAUTILUS_30_FALSE
325+HAVE_NAUTILUS_30_TRUE
326+GSETTINGS_RULES
327+GLIB_COMPILE_SCHEMAS
328+gsettingsschemadir
329+GSETTINGS_DISABLE_SCHEMAS_COMPILE
330 ACLOCAL_AMFLAGS
331 GETTEXT_PACKAGE
332 DATADIRNAME
333@@ -910,6 +918,7 @@
334 enable_libtool_lock
335 enable_nls
336 enable_debug
337+enable_schemas_compile
338 enable_grid_view
339 '
340 ac_precious_vars='build_alias
341@@ -1472,7 +1481,7 @@
342 # Omit some internal or obsolete options to make the list less imposing.
343 # This message is too long to be a string in the A/UX 3.1 sh.
344 cat <<_ACEOF
345-\`configure' configures ubuntuone-client-gnome 1.7.1 to adapt to many kinds of systems.
346+\`configure' configures ubuntuone-client-gnome 2.0.0 to adapt to many kinds of systems.
347
348 Usage: $0 [OPTION]... [VAR=VALUE]...
349
350@@ -1543,7 +1552,7 @@
351
352 if test -n "$ac_init_help"; then
353 case $ac_init_help in
354- short | recursive ) echo "Configuration of ubuntuone-client-gnome 1.7.1:";;
355+ short | recursive ) echo "Configuration of ubuntuone-client-gnome 2.0.0:";;
356 esac
357 cat <<\_ACEOF
358
359@@ -1562,6 +1571,8 @@
360 --disable-libtool-lock avoid locking (might break parallel builds)
361 --disable-nls do not use Native Language Support
362 --enable-debug Enable debug logging by default [default=auto]
363+ --disable-schemas-compile
364+ Disable regeneration of gschemas.compiled on install
365 --enable-grid-view Build the contacts grid view [default=disabled]
366
367 Optional Packages:
368@@ -1662,7 +1673,7 @@
369 test -n "$ac_init_help" && exit $ac_status
370 if $ac_init_version; then
371 cat <<\_ACEOF
372-ubuntuone-client-gnome configure 1.7.1
373+ubuntuone-client-gnome configure 2.0.0
374 generated by GNU Autoconf 2.67
375
376 Copyright (C) 2010 Free Software Foundation, Inc.
377@@ -1940,7 +1951,7 @@
378 This file contains any messages produced by compilers while
379 running configure, to aid debugging if configure makes a mistake.
380
381-It was created by ubuntuone-client-gnome $as_me 1.7.1, which was
382+It was created by ubuntuone-client-gnome $as_me 2.0.0, which was
383 generated by GNU Autoconf 2.67. Invocation command line was
384
385 $ $0 $@
386@@ -2757,7 +2768,7 @@
387
388 # Define the identity of the package.
389 PACKAGE='ubuntuone-client-gnome'
390- VERSION='1.7.1'
391+ VERSION='2.0.0'
392
393
394 cat >>confdefs.h <<_ACEOF
395@@ -5196,13 +5207,13 @@
396 else
397 lt_cv_nm_interface="BSD nm"
398 echo "int some_variable = 0;" > conftest.$ac_ext
399- (eval echo "\"\$as_me:5199: $ac_compile\"" >&5)
400+ (eval echo "\"\$as_me:5210: $ac_compile\"" >&5)
401 (eval "$ac_compile" 2>conftest.err)
402 cat conftest.err >&5
403- (eval echo "\"\$as_me:5202: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
404+ (eval echo "\"\$as_me:5213: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
405 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
406 cat conftest.err >&5
407- (eval echo "\"\$as_me:5205: output\"" >&5)
408+ (eval echo "\"\$as_me:5216: output\"" >&5)
409 cat conftest.out >&5
410 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
411 lt_cv_nm_interface="MS dumpbin"
412@@ -6407,7 +6418,7 @@
413 ;;
414 *-*-irix6*)
415 # Find out which ABI we are using.
416- echo '#line 6410 "configure"' > conftest.$ac_ext
417+ echo '#line 6421 "configure"' > conftest.$ac_ext
418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
419 (eval $ac_compile) 2>&5
420 ac_status=$?
421@@ -7936,11 +7947,11 @@
422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
424 -e 's:$: $lt_compiler_flag:'`
425- (eval echo "\"\$as_me:7939: $lt_compile\"" >&5)
426+ (eval echo "\"\$as_me:7950: $lt_compile\"" >&5)
427 (eval "$lt_compile" 2>conftest.err)
428 ac_status=$?
429 cat conftest.err >&5
430- echo "$as_me:7943: \$? = $ac_status" >&5
431+ echo "$as_me:7954: \$? = $ac_status" >&5
432 if (exit $ac_status) && test -s "$ac_outfile"; then
433 # The compiler can only warn and ignore the option if not recognized
434 # So say no if there are warnings other than the usual output.
435@@ -8275,11 +8286,11 @@
436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
438 -e 's:$: $lt_compiler_flag:'`
439- (eval echo "\"\$as_me:8278: $lt_compile\"" >&5)
440+ (eval echo "\"\$as_me:8289: $lt_compile\"" >&5)
441 (eval "$lt_compile" 2>conftest.err)
442 ac_status=$?
443 cat conftest.err >&5
444- echo "$as_me:8282: \$? = $ac_status" >&5
445+ echo "$as_me:8293: \$? = $ac_status" >&5
446 if (exit $ac_status) && test -s "$ac_outfile"; then
447 # The compiler can only warn and ignore the option if not recognized
448 # So say no if there are warnings other than the usual output.
449@@ -8380,11 +8391,11 @@
450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
452 -e 's:$: $lt_compiler_flag:'`
453- (eval echo "\"\$as_me:8383: $lt_compile\"" >&5)
454+ (eval echo "\"\$as_me:8394: $lt_compile\"" >&5)
455 (eval "$lt_compile" 2>out/conftest.err)
456 ac_status=$?
457 cat out/conftest.err >&5
458- echo "$as_me:8387: \$? = $ac_status" >&5
459+ echo "$as_me:8398: \$? = $ac_status" >&5
460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
461 then
462 # The compiler can only warn and ignore the option if not recognized
463@@ -8435,11 +8446,11 @@
464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
466 -e 's:$: $lt_compiler_flag:'`
467- (eval echo "\"\$as_me:8438: $lt_compile\"" >&5)
468+ (eval echo "\"\$as_me:8449: $lt_compile\"" >&5)
469 (eval "$lt_compile" 2>out/conftest.err)
470 ac_status=$?
471 cat out/conftest.err >&5
472- echo "$as_me:8442: \$? = $ac_status" >&5
473+ echo "$as_me:8453: \$? = $ac_status" >&5
474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
475 then
476 # The compiler can only warn and ignore the option if not recognized
477@@ -10819,7 +10830,7 @@
478 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
479 lt_status=$lt_dlunknown
480 cat > conftest.$ac_ext <<_LT_EOF
481-#line 10822 "configure"
482+#line 10833 "configure"
483 #include "confdefs.h"
484
485 #if HAVE_DLFCN_H
486@@ -10915,7 +10926,7 @@
487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
488 lt_status=$lt_dlunknown
489 cat > conftest.$ac_ext <<_LT_EOF
490-#line 10918 "configure"
491+#line 10929 "configure"
492 #include "confdefs.h"
493
494 #if HAVE_DLFCN_H
495@@ -11862,6 +11873,267 @@
496 fi
497
498 # Stuff we need to build the extension shlib
499+# Check if we are on nautilus 3.0 or newer
500+if test -n "$PKG_CONFIG" && \
501+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnautilus-extension >= 3.0\""; } >&5
502+ ($PKG_CONFIG --exists --print-errors "libnautilus-extension >= 3.0") 2>&5
503+ ac_status=$?
504+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
505+ test $ac_status = 0; }; then
506+ have_nautilus_30=yes
507+
508+
509+ # Check whether --enable-schemas-compile was given.
510+if test "${enable_schemas_compile+set}" = set; then :
511+ enableval=$enable_schemas_compile; case ${enableval} in
512+ yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
513+ no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
514+ *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
515+ esac
516+fi
517+
518+
519+
520+
521+
522+
523+
524+
525+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
526+ if test -n "$ac_tool_prefix"; then
527+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
528+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
529+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
530+$as_echo_n "checking for $ac_word... " >&6; }
531+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
532+ $as_echo_n "(cached) " >&6
533+else
534+ case $PKG_CONFIG in
535+ [\\/]* | ?:[\\/]*)
536+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
537+ ;;
538+ *)
539+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
540+for as_dir in $PATH
541+do
542+ IFS=$as_save_IFS
543+ test -z "$as_dir" && as_dir=.
544+ for ac_exec_ext in '' $ac_executable_extensions; do
545+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
546+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
547+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
548+ break 2
549+ fi
550+done
551+ done
552+IFS=$as_save_IFS
553+
554+ ;;
555+esac
556+fi
557+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
558+if test -n "$PKG_CONFIG"; then
559+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
560+$as_echo "$PKG_CONFIG" >&6; }
561+else
562+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
563+$as_echo "no" >&6; }
564+fi
565+
566+
567+fi
568+if test -z "$ac_cv_path_PKG_CONFIG"; then
569+ ac_pt_PKG_CONFIG=$PKG_CONFIG
570+ # Extract the first word of "pkg-config", so it can be a program name with args.
571+set dummy pkg-config; ac_word=$2
572+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
573+$as_echo_n "checking for $ac_word... " >&6; }
574+if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
575+ $as_echo_n "(cached) " >&6
576+else
577+ case $ac_pt_PKG_CONFIG in
578+ [\\/]* | ?:[\\/]*)
579+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
580+ ;;
581+ *)
582+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
583+for as_dir in $PATH
584+do
585+ IFS=$as_save_IFS
586+ test -z "$as_dir" && as_dir=.
587+ for ac_exec_ext in '' $ac_executable_extensions; do
588+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
589+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
590+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
591+ break 2
592+ fi
593+done
594+ done
595+IFS=$as_save_IFS
596+
597+ ;;
598+esac
599+fi
600+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
601+if test -n "$ac_pt_PKG_CONFIG"; then
602+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
603+$as_echo "$ac_pt_PKG_CONFIG" >&6; }
604+else
605+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
606+$as_echo "no" >&6; }
607+fi
608+
609+ if test "x$ac_pt_PKG_CONFIG" = x; then
610+ PKG_CONFIG=""
611+ else
612+ case $cross_compiling:$ac_tool_warned in
613+yes:)
614+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
615+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
616+ac_tool_warned=yes ;;
617+esac
618+ PKG_CONFIG=$ac_pt_PKG_CONFIG
619+ fi
620+else
621+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
622+fi
623+
624+fi
625+if test -n "$PKG_CONFIG"; then
626+ _pkg_min_version=0.16
627+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
628+$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
629+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
630+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
631+$as_echo "yes" >&6; }
632+ else
633+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
634+$as_echo "no" >&6; }
635+ PKG_CONFIG=""
636+ fi
637+fi
638+ gsettingsschemadir=${datadir}/glib-2.0/schemas
639+
640+ if test x$cross_compiling != xyes; then
641+ GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
642+ else
643+ # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
644+set dummy glib-compile-schemas; ac_word=$2
645+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
646+$as_echo_n "checking for $ac_word... " >&6; }
647+if test "${ac_cv_path_GLIB_COMPILE_SCHEMAS+set}" = set; then :
648+ $as_echo_n "(cached) " >&6
649+else
650+ case $GLIB_COMPILE_SCHEMAS in
651+ [\\/]* | ?:[\\/]*)
652+ ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
653+ ;;
654+ *)
655+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
656+for as_dir in $PATH
657+do
658+ IFS=$as_save_IFS
659+ test -z "$as_dir" && as_dir=.
660+ for ac_exec_ext in '' $ac_executable_extensions; do
661+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
662+ ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
663+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
664+ break 2
665+ fi
666+done
667+ done
668+IFS=$as_save_IFS
669+
670+ ;;
671+esac
672+fi
673+GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
674+if test -n "$GLIB_COMPILE_SCHEMAS"; then
675+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
676+$as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
677+else
678+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
679+$as_echo "no" >&6; }
680+fi
681+
682+
683+ fi
684+
685+ if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
686+ as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
687+ else
688+ :
689+ fi
690+
691+ GSETTINGS_RULES='
692+.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
693+
694+mostlyclean-am: clean-gsettings-schemas
695+
696+gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
697+
698+%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
699+ $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch $@
700+
701+all-am: $(gsettings_SCHEMAS:.xml=.valid)
702+uninstall-am: uninstall-gsettings-schemas
703+install-data-am: install-gsettings-schemas
704+
705+.SECONDARY: $(gsettings_SCHEMAS)
706+
707+install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
708+ @$(NORMAL_INSTALL)
709+ if test -n "$^"; then \
710+ test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
711+ $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
712+ test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
713+ fi
714+
715+uninstall-gsettings-schemas:
716+ @$(NORMAL_UNINSTALL)
717+ @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
718+ files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
719+ test -n "$$files" || exit 0; \
720+ echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
721+ cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
722+ test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
723+
724+clean-gsettings-schemas:
725+ rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
726+
727+ifdef gsettings_ENUM_NAMESPACE
728+$(gsettings__enum_file): $(gsettings_ENUM_FILES)
729+ $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
730+endif
731+'
732+
733+
734+
735+
736+
737+
738+else
739+ have_nautilus_30=no
740+fi
741+if test "x$have_nautilus_30" = "xyes"; then
742+
743+cat >>confdefs.h <<_ACEOF
744+#define HAVE_NAUTILUS_30 1
745+_ACEOF
746+
747+ NAUTILUS_GCONF_DEP="gconf-2.0 >= 2.31.1"
748+else
749+ NAUTILUS_GCONF_DEP="gconf-2.0"
750+fi
751+ if test "x$have_nautilus_30" = "xyes"; then
752+ HAVE_NAUTILUS_30_TRUE=
753+ HAVE_NAUTILUS_30_FALSE='#'
754+else
755+ HAVE_NAUTILUS_30_TRUE='#'
756+ HAVE_NAUTILUS_30_FALSE=
757+fi
758+
759+
760
761 pkg_failed=no
762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAUTILUS" >&5
763@@ -11871,12 +12143,12 @@
764 pkg_cv_NAUTILUS_CFLAGS="$NAUTILUS_CFLAGS"
765 elif test -n "$PKG_CONFIG"; then
766 if test -n "$PKG_CONFIG" && \
767- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7\""; } >&5
768- ($PKG_CONFIG --exists --print-errors "libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7") 2>&5
769+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 \$NAUTILUS_GCONF_DEP\""; } >&5
770+ ($PKG_CONFIG --exists --print-errors "libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 $NAUTILUS_GCONF_DEP") 2>&5
771 ac_status=$?
772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
773 test $ac_status = 0; }; then
774- pkg_cv_NAUTILUS_CFLAGS=`$PKG_CONFIG --cflags "libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7" 2>/dev/null`
775+ pkg_cv_NAUTILUS_CFLAGS=`$PKG_CONFIG --cflags "libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 $NAUTILUS_GCONF_DEP" 2>/dev/null`
776 else
777 pkg_failed=yes
778 fi
779@@ -11887,12 +12159,12 @@
780 pkg_cv_NAUTILUS_LIBS="$NAUTILUS_LIBS"
781 elif test -n "$PKG_CONFIG"; then
782 if test -n "$PKG_CONFIG" && \
783- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7\""; } >&5
784- ($PKG_CONFIG --exists --print-errors "libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7") 2>&5
785+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 \$NAUTILUS_GCONF_DEP\""; } >&5
786+ ($PKG_CONFIG --exists --print-errors "libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 $NAUTILUS_GCONF_DEP") 2>&5
787 ac_status=$?
788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
789 test $ac_status = 0; }; then
790- pkg_cv_NAUTILUS_LIBS=`$PKG_CONFIG --libs "libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7" 2>/dev/null`
791+ pkg_cv_NAUTILUS_LIBS=`$PKG_CONFIG --libs "libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 $NAUTILUS_GCONF_DEP" 2>/dev/null`
792 else
793 pkg_failed=yes
794 fi
795@@ -11912,14 +12184,14 @@
796 _pkg_short_errors_supported=no
797 fi
798 if test $_pkg_short_errors_supported = yes; then
799- NAUTILUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7" 2>&1`
800+ NAUTILUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 $NAUTILUS_GCONF_DEP" 2>&1`
801 else
802- NAUTILUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7" 2>&1`
803+ NAUTILUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 $NAUTILUS_GCONF_DEP" 2>&1`
804 fi
805 # Put the nasty error message in config.log where it belongs
806 echo "$NAUTILUS_PKG_ERRORS" >&5
807
808- as_fn_error $? "Package requirements (libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7) were not met:
809+ as_fn_error $? "Package requirements (libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 $NAUTILUS_GCONF_DEP) were not met:
810
811 $NAUTILUS_PKG_ERRORS
812
813@@ -12116,6 +12388,267 @@
814
815
816 # Dependencies for the gnome-settings-daemon plugin
817+# Check if we are on gnome-settings-daemon 3.0 or newer
818+if test -n "$PKG_CONFIG" && \
819+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-settings-daemon >= 3.0\""; } >&5
820+ ($PKG_CONFIG --exists --print-errors "gnome-settings-daemon >= 3.0") 2>&5
821+ ac_status=$?
822+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
823+ test $ac_status = 0; }; then
824+ have_gsd_30=yes
825+
826+
827+ # Check whether --enable-schemas-compile was given.
828+if test "${enable_schemas_compile+set}" = set; then :
829+ enableval=$enable_schemas_compile; case ${enableval} in
830+ yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
831+ no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
832+ *) as_fn_error $? "bad value ${enableval} for --enable-schemas-compile" "$LINENO" 5 ;;
833+ esac
834+fi
835+
836+
837+
838+
839+
840+
841+
842+
843+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
844+ if test -n "$ac_tool_prefix"; then
845+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
846+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
847+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
848+$as_echo_n "checking for $ac_word... " >&6; }
849+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
850+ $as_echo_n "(cached) " >&6
851+else
852+ case $PKG_CONFIG in
853+ [\\/]* | ?:[\\/]*)
854+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
855+ ;;
856+ *)
857+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
858+for as_dir in $PATH
859+do
860+ IFS=$as_save_IFS
861+ test -z "$as_dir" && as_dir=.
862+ for ac_exec_ext in '' $ac_executable_extensions; do
863+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
864+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
865+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
866+ break 2
867+ fi
868+done
869+ done
870+IFS=$as_save_IFS
871+
872+ ;;
873+esac
874+fi
875+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
876+if test -n "$PKG_CONFIG"; then
877+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
878+$as_echo "$PKG_CONFIG" >&6; }
879+else
880+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
881+$as_echo "no" >&6; }
882+fi
883+
884+
885+fi
886+if test -z "$ac_cv_path_PKG_CONFIG"; then
887+ ac_pt_PKG_CONFIG=$PKG_CONFIG
888+ # Extract the first word of "pkg-config", so it can be a program name with args.
889+set dummy pkg-config; ac_word=$2
890+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
891+$as_echo_n "checking for $ac_word... " >&6; }
892+if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
893+ $as_echo_n "(cached) " >&6
894+else
895+ case $ac_pt_PKG_CONFIG in
896+ [\\/]* | ?:[\\/]*)
897+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
898+ ;;
899+ *)
900+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
901+for as_dir in $PATH
902+do
903+ IFS=$as_save_IFS
904+ test -z "$as_dir" && as_dir=.
905+ for ac_exec_ext in '' $ac_executable_extensions; do
906+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
907+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
908+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
909+ break 2
910+ fi
911+done
912+ done
913+IFS=$as_save_IFS
914+
915+ ;;
916+esac
917+fi
918+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
919+if test -n "$ac_pt_PKG_CONFIG"; then
920+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
921+$as_echo "$ac_pt_PKG_CONFIG" >&6; }
922+else
923+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
924+$as_echo "no" >&6; }
925+fi
926+
927+ if test "x$ac_pt_PKG_CONFIG" = x; then
928+ PKG_CONFIG=""
929+ else
930+ case $cross_compiling:$ac_tool_warned in
931+yes:)
932+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
933+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
934+ac_tool_warned=yes ;;
935+esac
936+ PKG_CONFIG=$ac_pt_PKG_CONFIG
937+ fi
938+else
939+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
940+fi
941+
942+fi
943+if test -n "$PKG_CONFIG"; then
944+ _pkg_min_version=0.16
945+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
946+$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
947+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
948+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
949+$as_echo "yes" >&6; }
950+ else
951+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
952+$as_echo "no" >&6; }
953+ PKG_CONFIG=""
954+ fi
955+fi
956+ gsettingsschemadir=${datadir}/glib-2.0/schemas
957+
958+ if test x$cross_compiling != xyes; then
959+ GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
960+ else
961+ # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
962+set dummy glib-compile-schemas; ac_word=$2
963+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
964+$as_echo_n "checking for $ac_word... " >&6; }
965+if test "${ac_cv_path_GLIB_COMPILE_SCHEMAS+set}" = set; then :
966+ $as_echo_n "(cached) " >&6
967+else
968+ case $GLIB_COMPILE_SCHEMAS in
969+ [\\/]* | ?:[\\/]*)
970+ ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
971+ ;;
972+ *)
973+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974+for as_dir in $PATH
975+do
976+ IFS=$as_save_IFS
977+ test -z "$as_dir" && as_dir=.
978+ for ac_exec_ext in '' $ac_executable_extensions; do
979+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
980+ ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
981+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
982+ break 2
983+ fi
984+done
985+ done
986+IFS=$as_save_IFS
987+
988+ ;;
989+esac
990+fi
991+GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
992+if test -n "$GLIB_COMPILE_SCHEMAS"; then
993+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
994+$as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
995+else
996+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
997+$as_echo "no" >&6; }
998+fi
999+
1000+
1001+ fi
1002+
1003+ if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
1004+ as_fn_error $? "glib-compile-schemas not found." "$LINENO" 5
1005+ else
1006+ :
1007+ fi
1008+
1009+ GSETTINGS_RULES='
1010+.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
1011+
1012+mostlyclean-am: clean-gsettings-schemas
1013+
1014+gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
1015+
1016+%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
1017+ $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch $@
1018+
1019+all-am: $(gsettings_SCHEMAS:.xml=.valid)
1020+uninstall-am: uninstall-gsettings-schemas
1021+install-data-am: install-gsettings-schemas
1022+
1023+.SECONDARY: $(gsettings_SCHEMAS)
1024+
1025+install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
1026+ @$(NORMAL_INSTALL)
1027+ if test -n "$^"; then \
1028+ test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
1029+ $(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
1030+ test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
1031+ fi
1032+
1033+uninstall-gsettings-schemas:
1034+ @$(NORMAL_UNINSTALL)
1035+ @list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
1036+ files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
1037+ test -n "$$files" || exit 0; \
1038+ echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
1039+ cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
1040+ test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
1041+
1042+clean-gsettings-schemas:
1043+ rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
1044+
1045+ifdef gsettings_ENUM_NAMESPACE
1046+$(gsettings__enum_file): $(gsettings_ENUM_FILES)
1047+ $(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" $^ > $@.tmp && mv $@.tmp $@
1048+endif
1049+'
1050+
1051+
1052+
1053+
1054+
1055+
1056+else
1057+ have_gsd_30=no
1058+fi
1059+if test "x$have_gsd_30" = "xyes"; then
1060+
1061+cat >>confdefs.h <<_ACEOF
1062+#define HAVE_GSD_30 1
1063+_ACEOF
1064+
1065+ GSD_GCONF_DEP="gconf-2.0 >= 2.31.1"
1066+else
1067+ GSD_GCONF_DEP="gconf-2.0"
1068+fi
1069+ if test "x$have_gsd_30" = "xyes"; then
1070+ HAVE_GSD_30_TRUE=
1071+ HAVE_GSD_30_FALSE='#'
1072+else
1073+ HAVE_GSD_30_TRUE='#'
1074+ HAVE_GSD_30_FALSE=
1075+fi
1076+
1077+
1078
1079 pkg_failed=no
1080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETTINGS_PLUGIN" >&5
1081@@ -12127,21 +12660,21 @@
1082 if test -n "$PKG_CONFIG" && \
1083 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-settings-daemon
1084 gio-2.0
1085- gconf-2.0
1086 libsyncdaemon-1.0 >= 1.7
1087+ \$GSD_GCONF_DEP
1088 \""; } >&5
1089 ($PKG_CONFIG --exists --print-errors "gnome-settings-daemon
1090 gio-2.0
1091- gconf-2.0
1092 libsyncdaemon-1.0 >= 1.7
1093+ $GSD_GCONF_DEP
1094 ") 2>&5
1095 ac_status=$?
1096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1097 test $ac_status = 0; }; then
1098 pkg_cv_SETTINGS_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "gnome-settings-daemon
1099 gio-2.0
1100- gconf-2.0
1101 libsyncdaemon-1.0 >= 1.7
1102+ $GSD_GCONF_DEP
1103 " 2>/dev/null`
1104 else
1105 pkg_failed=yes
1106@@ -12155,21 +12688,21 @@
1107 if test -n "$PKG_CONFIG" && \
1108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-settings-daemon
1109 gio-2.0
1110- gconf-2.0
1111 libsyncdaemon-1.0 >= 1.7
1112+ \$GSD_GCONF_DEP
1113 \""; } >&5
1114 ($PKG_CONFIG --exists --print-errors "gnome-settings-daemon
1115 gio-2.0
1116- gconf-2.0
1117 libsyncdaemon-1.0 >= 1.7
1118+ $GSD_GCONF_DEP
1119 ") 2>&5
1120 ac_status=$?
1121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1122 test $ac_status = 0; }; then
1123 pkg_cv_SETTINGS_PLUGIN_LIBS=`$PKG_CONFIG --libs "gnome-settings-daemon
1124 gio-2.0
1125- gconf-2.0
1126 libsyncdaemon-1.0 >= 1.7
1127+ $GSD_GCONF_DEP
1128 " 2>/dev/null`
1129 else
1130 pkg_failed=yes
1131@@ -12192,14 +12725,14 @@
1132 if test $_pkg_short_errors_supported = yes; then
1133 SETTINGS_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gnome-settings-daemon
1134 gio-2.0
1135- gconf-2.0
1136 libsyncdaemon-1.0 >= 1.7
1137+ $GSD_GCONF_DEP
1138 " 2>&1`
1139 else
1140 SETTINGS_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors "gnome-settings-daemon
1141 gio-2.0
1142- gconf-2.0
1143 libsyncdaemon-1.0 >= 1.7
1144+ $GSD_GCONF_DEP
1145 " 2>&1`
1146 fi
1147 # Put the nasty error message in config.log where it belongs
1148@@ -12207,8 +12740,8 @@
1149
1150 as_fn_error $? "Package requirements (gnome-settings-daemon
1151 gio-2.0
1152- gconf-2.0
1153 libsyncdaemon-1.0 >= 1.7
1154+ $GSD_GCONF_DEP
1155 ) were not met:
1156
1157 $SETTINGS_PLUGIN_PKG_ERRORS
1158@@ -12241,19 +12774,6 @@
1159 $as_echo "yes" >&6; }
1160
1161 fi
1162-# Check if we are on gnome-settingsd-daemon 3.0 or newer
1163-if test -n "$PKG_CONFIG" && \
1164- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-settings-daemon >= 3.0\""; } >&5
1165- ($PKG_CONFIG --exists --print-errors "gnome-settings-daemon >= 3.0") 2>&5
1166- ac_status=$?
1167- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1168- test $ac_status = 0; }; then
1169-
1170-cat >>confdefs.h <<_ACEOF
1171-#define HAVE_GSD_30 1
1172-_ACEOF
1173-
1174-fi
1175
1176
1177
1178@@ -12394,6 +12914,14 @@
1179 ac_config_commands="$ac_config_commands po/stamp-it"
1180
1181
1182+if test -z "${HAVE_NAUTILUS_30_TRUE}" && test -z "${HAVE_NAUTILUS_30_FALSE}"; then
1183+ as_fn_error $? "conditional \"HAVE_NAUTILUS_30\" was never defined.
1184+Usually this means the macro was only invoked conditionally." "$LINENO" 5
1185+fi
1186+if test -z "${HAVE_GSD_30_TRUE}" && test -z "${HAVE_GSD_30_FALSE}"; then
1187+ as_fn_error $? "conditional \"HAVE_GSD_30\" was never defined.
1188+Usually this means the macro was only invoked conditionally." "$LINENO" 5
1189+fi
1190
1191 : ${CONFIG_STATUS=./config.status}
1192 ac_write_fail=0
1193@@ -12802,7 +13330,7 @@
1194 # report actual input values of CONFIG_FILES etc. instead of their
1195 # values after options handling.
1196 ac_log="
1197-This file was extended by ubuntuone-client-gnome $as_me 1.7.1, which was
1198+This file was extended by ubuntuone-client-gnome $as_me 2.0.0, which was
1199 generated by GNU Autoconf 2.67. Invocation command line was
1200
1201 CONFIG_FILES = $CONFIG_FILES
1202@@ -12868,7 +13396,7 @@
1203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1204 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1205 ac_cs_version="\\
1206-ubuntuone-client-gnome config.status 1.7.1
1207+ubuntuone-client-gnome config.status 2.0.0
1208 configured by $0, generated by GNU Autoconf 2.67,
1209 with options \\"\$ac_cs_config\\"
1210
1211
1212=== modified file 'configure.ac'
1213--- configure.ac 2011-08-11 12:52:11 +0000
1214+++ configure.ac 2011-09-27 18:40:29 +0000
1215@@ -1,7 +1,7 @@
1216 dnl Process this file with autoconf to produce a configure script.
1217 AC_PREREQ(2.53)
1218
1219-AC_INIT([ubuntuone-client-gnome], [1.7.1])
1220+AC_INIT([ubuntuone-client-gnome], [2.0.0])
1221 AC_CONFIG_SRCDIR([config.h.in])
1222
1223 AM_INIT_AUTOMAKE([1.10 foreign])
1224@@ -48,7 +48,21 @@
1225 fi
1226
1227 # Stuff we need to build the extension shlib
1228-PKG_CHECK_MODULES(NAUTILUS, [libnautilus-extension >= 2.6.0 libebook-1.2 gconf-2.0 libsyncdaemon-1.0 >= 1.7])
1229+# Check if we are on nautilus 3.0 or newer
1230+PKG_CHECK_EXISTS([libnautilus-extension >= 3.0],
1231+ [have_nautilus_30=yes
1232+ GLIB_GSETTINGS()],
1233+ [have_nautilus_30=no])
1234+if test "x$have_nautilus_30" = "xyes"; then
1235+ AC_DEFINE_UNQUOTED([HAVE_NAUTILUS_30], [1],
1236+ [If using nautilus 3.0 or newer])
1237+ NAUTILUS_GCONF_DEP="gconf-2.0 >= 2.31.1"
1238+else
1239+ NAUTILUS_GCONF_DEP="gconf-2.0"
1240+fi
1241+AM_CONDITIONAL([HAVE_NAUTILUS_30], [test "x$have_nautilus_30" = "xyes"])
1242+
1243+PKG_CHECK_MODULES(NAUTILUS, [libnautilus-extension >= 2.6.0 libebook-1.2 libsyncdaemon-1.0 >= 1.7 $NAUTILUS_GCONF_DEP])
1244 AC_SUBST(NAUTILUS_CFLAGS)
1245 AC_SUBST(NAUTILUS_LIBS)
1246
1247@@ -81,17 +95,26 @@
1248 AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
1249
1250 # Dependencies for the gnome-settings-daemon plugin
1251+# Check if we are on gnome-settings-daemon 3.0 or newer
1252+PKG_CHECK_EXISTS([gnome-settings-daemon >= 3.0],
1253+ [have_gsd_30=yes
1254+ GLIB_GSETTINGS()],
1255+ [have_gsd_30=no])
1256+if test "x$have_gsd_30" = "xyes"; then
1257+ AC_DEFINE_UNQUOTED([HAVE_GSD_30], [1],
1258+ [If using gnome-settings-daemon 3.0 or newer])
1259+ GSD_GCONF_DEP="gconf-2.0 >= 2.31.1"
1260+else
1261+ GSD_GCONF_DEP="gconf-2.0"
1262+fi
1263+AM_CONDITIONAL([HAVE_GSD_30], [test "x$have_gsd_30" = "xyes"])
1264+
1265 PKG_CHECK_MODULES(SETTINGS_PLUGIN,
1266 gnome-settings-daemon
1267 gio-2.0
1268- gconf-2.0
1269 libsyncdaemon-1.0 >= 1.7
1270+ $GSD_GCONF_DEP
1271 )
1272-# Check if we are on gnome-settingsd-daemon 3.0 or newer
1273-PKG_CHECK_EXISTS([gnome-settings-daemon >= 3.0],
1274- AC_DEFINE_UNQUOTED([HAVE_GSD_30], [1],
1275- [If using gnome-settings-daemon 3.0 or newer]),
1276- [])
1277 AC_SUBST(SETTINGS_PLUGIN_CFLAGS)
1278 AC_SUBST(SETTINGS_PLUGIN_LIBS)
1279
1280
1281=== modified file 'debian/changelog'
1282--- debian/changelog 2011-09-06 17:49:52 +0000
1283+++ debian/changelog 2011-09-27 18:40:29 +0000
1284@@ -1,3 +1,18 @@
1285+ubuntuone-client-gnome (2.0.0-0ubuntu1) oneiric; urgency=low
1286+
1287+ * New upstream release.
1288+ - Share dialog has extremely small contacts widget (LP: #854754)
1289+ - The g-s-d integration doesn't work in Oneiric (LP: #856331)
1290+ - Stop using gconf in Oneiric (LP: #800717)
1291+ - Untranslated plural strings (LP: #786617)
1292+ * debian/control:
1293+ - Update dependencies to be more correct
1294+ - Require gconf >= 2.31.1 for gsettings-data-convert support
1295+ * debian/ubuntuone.gschema.override:
1296+ - Removed as is no longer necessary to support gsettings
1297+
1298+ -- Rodney Dawes <dobey@lunatari> Tue, 27 Sep 2011 14:30:53 -0400
1299+
1300 ubuntuone-client-gnome (1.7.1-0ubuntu3) oneiric; urgency=low
1301
1302 * Rebuild to drop dependency on libebook1.2-11.
1303
1304=== modified file 'debian/control'
1305--- debian/control 2011-08-11 12:52:11 +0000
1306+++ debian/control 2011-09-27 18:40:29 +0000
1307@@ -10,9 +10,9 @@
1308 intltool (>= 0.40.0),
1309 libdbus-glib-1-dev (>= 0.70),
1310 libebook1.2-dev,
1311- libgconf2-dev,
1312+ libgconf2-dev (>= 2.31.1),
1313 libnautilus-extension-dev (>= 2.6.0),
1314- libsyncdaemon-1.0-dev (>= 1.7.0),
1315+ libsyncdaemon-1.0-dev (>= 2.0.0),
1316 libtool,
1317 pkg-config (>= 0.19)
1318 Standards-Version: 3.9.1
1319@@ -22,8 +22,9 @@
1320 Section: gnome
1321 Architecture: any
1322 Depends: ${shlibs:Depends}, ${misc:Depends},
1323- ubuntuone-client (>= 1.7.1),
1324- gnome-settings-daemon
1325+ ubuntuone-client (>= 2.0.0),
1326+ gnome-settings-daemon,
1327+ gconf2 (>= 2.31.1)
1328 Replaces: ubuntuone-client (<= 1.1.1)
1329 Breaks: ubuntuone-client (<= 1.1.1)
1330 Suggests: ubuntuone-client-gnome-dbg
1331
1332=== removed file 'debian/ubuntuone.gschema.override'
1333--- debian/ubuntuone.gschema.override 2011-08-11 12:52:11 +0000
1334+++ debian/ubuntuone.gschema.override 1970-01-01 00:00:00 +0000
1335@@ -1,4 +0,0 @@
1336-[org.gnome.settings-daemon.plugins.ubuntuone]
1337-active=true
1338-priority=7
1339-
1340
1341=== modified file 'gsd/Makefile.am'
1342--- gsd/Makefile.am 2011-08-11 12:52:11 +0000
1343+++ gsd/Makefile.am 2011-09-27 18:40:29 +0000
1344@@ -3,6 +3,20 @@
1345 plugin_LTLIBRARIES = \
1346 libubuntuone.la
1347
1348+gschema_in_files = gsd-ubuntuone.gschema.xml.in.in
1349+gsettings_SCHEMAS = $(gschema_in_files:.xml.in.in=.xml)
1350+
1351+if HAVE_GSD_30
1352+gsettingsdir = $(datadir)/glib-2.0/schemas
1353+
1354+%.gschema.xml.in: %.gschema.xml.in.in
1355+ $(AM_V_GEN) sed -e "s|\@GETTEXT_PACKAGE\@|$(GETTEXT_PACKAGE)|g" $< > $@
1356+
1357+@INTLTOOL_XML_NOMERGE_RULE@
1358+
1359+@GSETTINGS_RULES@
1360+endif
1361+
1362 libubuntuone_la_SOURCES = \
1363 gsd-ubuntuone.h \
1364 gsd-ubuntuone.c
1365@@ -29,6 +43,7 @@
1366 plugin_DATA = $(plugin_in_files:.gnome-settings-plugin.in=.gnome-settings-plugin)
1367
1368 EXTRA_DIST = \
1369+ $(gschema_in_files) \
1370 $(plugin_in_files)
1371
1372 CLEANFILES = \
1373
1374=== modified file 'gsd/Makefile.in'
1375--- gsd/Makefile.in 2011-08-11 12:52:11 +0000
1376+++ gsd/Makefile.in 2011-09-27 18:40:29 +0000
1377@@ -145,11 +145,13 @@
1378 EXEEXT = @EXEEXT@
1379 FGREP = @FGREP@
1380 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
1381+GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
1382 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
1383 GMSGFMT = @GMSGFMT@
1384 GREP = @GREP@
1385 GSD_INTLTOOL_PLUGIN_RULE = @GSD_INTLTOOL_PLUGIN_RULE@
1386 GSD_PLUGINDIR_NAME = @GSD_PLUGINDIR_NAME@
1387+GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@
1388 INSTALL = @INSTALL@
1389 INSTALL_DATA = @INSTALL_DATA@
1390 INSTALL_PROGRAM = @INSTALL_PROGRAM@
1391@@ -224,6 +226,7 @@
1392 docdir = @docdir@
1393 dvidir = @dvidir@
1394 exec_prefix = @exec_prefix@
1395+gsettingsschemadir = @gsettingsschemadir@
1396 host = @host@
1397 host_alias = @host_alias@
1398 host_cpu = @host_cpu@
1399@@ -257,6 +260,9 @@
1400 plugin_LTLIBRARIES = \
1401 libubuntuone.la
1402
1403+gschema_in_files = gsd-ubuntuone.gschema.xml.in.in
1404+gsettings_SCHEMAS = $(gschema_in_files:.xml.in.in=.xml)
1405+@HAVE_GSD_30_TRUE@gsettingsdir = $(datadir)/glib-2.0/schemas
1406 libubuntuone_la_SOURCES = \
1407 gsd-ubuntuone.h \
1408 gsd-ubuntuone.c
1409@@ -282,6 +288,7 @@
1410
1411 plugin_DATA = $(plugin_in_files:.gnome-settings-plugin.in=.gnome-settings-plugin)
1412 EXTRA_DIST = \
1413+ $(gschema_in_files) \
1414 $(plugin_in_files)
1415
1416 CLEANFILES = \
1417@@ -629,6 +636,13 @@
1418 uninstall-pluginDATA uninstall-pluginLTLIBRARIES
1419
1420
1421+@HAVE_GSD_30_TRUE@%.gschema.xml.in: %.gschema.xml.in.in
1422+@HAVE_GSD_30_TRUE@ $(AM_V_GEN) sed -e "s|\@GETTEXT_PACKAGE\@|$(GETTEXT_PACKAGE)|g" $< > $@
1423+
1424+@HAVE_GSD_30_TRUE@@INTLTOOL_XML_NOMERGE_RULE@
1425+
1426+@HAVE_GSD_30_TRUE@@GSETTINGS_RULES@
1427+
1428 @GSD_INTLTOOL_PLUGIN_RULE@
1429
1430 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1431
1432=== modified file 'gsd/gsd-ubuntuone.c'
1433--- gsd/gsd-ubuntuone.c 2011-08-11 12:52:11 +0000
1434+++ gsd/gsd-ubuntuone.c 2011-09-27 18:40:29 +0000
1435@@ -24,15 +24,22 @@
1436 #include <glib/gi18n-lib.h>
1437 #include <gmodule.h>
1438 #include <gio/gio.h>
1439+
1440+#ifndef HAVE_GSD_30
1441 #include <gconf/gconf-client.h>
1442+#endif
1443
1444 #include "gnome-settings-daemon/gnome-settings-plugin.h"
1445 #include "gsd-ubuntuone.h"
1446
1447 GNOME_SETTINGS_PLUGIN_REGISTER (GsdUbuntuOne, gsd_ubuntuone)
1448
1449+#ifdef HAVE_GSD_30
1450+#define SETTINGS_DOMAIN "org.gnome.settings-daemon.plugins.ubuntuone"
1451+#define SETTINGS_BOOKMARK_KEY "checked-bookmark-file"
1452+#else
1453 #define CHECKED_BOOKMARK_FILE_KEY "/apps/gnome_settings_daemon/plugins/ubuntuone/checked_bookmark_file"
1454-
1455+#endif
1456
1457 static void
1458 bookmark_file_loaded (GObject *source, GAsyncResult *res, gpointer user_data)
1459@@ -68,10 +75,19 @@
1460 NULL,
1461 FALSE,
1462 0, NULL, NULL, &error)) {
1463+#ifdef HAVE_GSD_30
1464+ GSettings *settings;
1465+
1466+ settings = g_settings_new (SETTINGS_DOMAIN);
1467+ g_settings_set_boolean (settings, SETTINGS_BOOKMARK_KEY, TRUE);
1468+ g_object_unref (settings);
1469+#else
1470 GConfClient *conf_client;
1471
1472 conf_client = gconf_client_get_default ();
1473 gconf_client_set_bool (conf_client, CHECKED_BOOKMARK_FILE_KEY, TRUE, NULL);
1474+ g_object_unref (conf_client);
1475+#endif
1476 } else {
1477 g_warning ("Could not save bookmarks file: %s\n", error->message);
1478 g_error_free (error);
1479@@ -91,38 +107,49 @@
1480 check_bookmark_file (void)
1481 {
1482 gchar *filename;
1483+ gboolean already_checked = FALSE;
1484+
1485+ /* We only check the bookmark file if we haven't already done so */
1486+#ifdef HAVE_GSD_30
1487+ GSettings *settings;
1488+
1489+ settings = g_settings_new (SETTINGS_DOMAIN);
1490+ already_checked = g_settings_get_boolean (settings, SETTINGS_BOOKMARK_KEY);
1491+ g_object_unref (settings);
1492+#else
1493+ GError *error = NULL;
1494 GConfClient *conf_client;
1495- GError *error = NULL;
1496
1497- /* We only check the bookmark file if we haven't already done so */
1498 conf_client = gconf_client_get_default ();
1499- if (!gconf_client_get_bool (conf_client, CHECKED_BOOKMARK_FILE_KEY, &error)) {
1500- if (error == NULL) {
1501- gchar *u1_folder;
1502-
1503- u1_folder = g_build_filename (g_get_home_dir (), "Ubuntu One", NULL);
1504- if (g_file_test ((const gchar *) u1_folder, G_FILE_TEST_IS_DIR)) {
1505- /* Load the bookmark file */
1506- filename = g_build_filename (g_get_home_dir (), ".gtk-bookmarks", NULL);
1507- if (filename != NULL) {
1508- GFile *file;
1509-
1510- file = g_file_new_for_path (filename);
1511- g_file_load_contents_async (file, NULL, bookmark_file_loaded, NULL);
1512-
1513- g_object_unref (G_OBJECT (file));
1514- g_free (filename);
1515- }
1516- }
1517-
1518- g_free (u1_folder);
1519- } else {
1520- g_warning ("Error getting settings: %s\n", error->message);
1521- g_error_free (error);
1522- }
1523- }
1524-
1525+ already_checked = gconf_client_get_bool (conf_client, CHECKED_BOOKMARK_FILE_KEY, &error);
1526 g_object_unref (conf_client);
1527+
1528+ if (error != NULL) {
1529+ g_warning ("Error getting settings: %s\n", error->message);
1530+ g_error_free (error);
1531+ already_checked = TRUE;
1532+ }
1533+#endif
1534+ if (!already_checked) {
1535+ gchar *u1_folder;
1536+
1537+ u1_folder = g_build_filename (g_get_home_dir (), "Ubuntu One", NULL);
1538+ if (g_file_test ((const gchar *) u1_folder, G_FILE_TEST_IS_DIR)) {
1539+ /* Load the bookmark file */
1540+ filename = g_build_filename (g_get_home_dir (), ".gtk-bookmarks", NULL);
1541+ if (filename != NULL) {
1542+ GFile *file;
1543+
1544+ file = g_file_new_for_path (filename);
1545+ g_file_load_contents_async (file, NULL, bookmark_file_loaded, NULL);
1546+
1547+ g_object_unref (G_OBJECT (file));
1548+ g_free (filename);
1549+ }
1550+ }
1551+
1552+ g_free (u1_folder);
1553+ }
1554 }
1555
1556 static void
1557
1558=== added file 'gsd/gsd-ubuntuone.gschema.xml.in.in'
1559--- gsd/gsd-ubuntuone.gschema.xml.in.in 1970-01-01 00:00:00 +0000
1560+++ gsd/gsd-ubuntuone.gschema.xml.in.in 2011-09-27 18:40:29 +0000
1561@@ -0,0 +1,14 @@
1562+<schemalist>
1563+ <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.plugins.ubuntuone" path="/org/gnome/settings-daemon/plugins/ubuntuone/">
1564+ <key name="active" type="b">
1565+ <default>true</default>
1566+ <summary>Enable Ubuntu One features</summary>
1567+ <description>Whether integration of Ubuntu One with gnome-settings-daemon is enabled or not.</description>
1568+ </key>
1569+ <key name="priority" type="i">
1570+ <default>7</default>
1571+ <summary>Priority for loading Ubuntu One features in gnome-settings-daemon</summary>
1572+ <description>The startup queue priority for the Ubuntu One gnome-settings-daemon plug-in.</description>
1573+ </key>
1574+ </schema>
1575+</schemalist>
1576
1577=== modified file 'nautilus/Makefile.in'
1578--- nautilus/Makefile.in 2011-08-11 12:52:11 +0000
1579+++ nautilus/Makefile.in 2011-09-27 18:40:29 +0000
1580@@ -183,11 +183,13 @@
1581 EXEEXT = @EXEEXT@
1582 FGREP = @FGREP@
1583 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
1584+GLIB_COMPILE_SCHEMAS = @GLIB_COMPILE_SCHEMAS@
1585 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
1586 GMSGFMT = @GMSGFMT@
1587 GREP = @GREP@
1588 GSD_INTLTOOL_PLUGIN_RULE = @GSD_INTLTOOL_PLUGIN_RULE@
1589 GSD_PLUGINDIR_NAME = @GSD_PLUGINDIR_NAME@
1590+GSETTINGS_DISABLE_SCHEMAS_COMPILE = @GSETTINGS_DISABLE_SCHEMAS_COMPILE@
1591 INSTALL = @INSTALL@
1592 INSTALL_DATA = @INSTALL_DATA@
1593 INSTALL_PROGRAM = @INSTALL_PROGRAM@
1594@@ -262,6 +264,7 @@
1595 docdir = @docdir@
1596 dvidir = @dvidir@
1597 exec_prefix = @exec_prefix@
1598+gsettingsschemadir = @gsettingsschemadir@
1599 host = @host@
1600 host_alias = @host_alias@
1601 host_cpu = @host_cpu@
1602
1603=== modified file 'nautilus/contacts-view.c'
1604--- nautilus/contacts-view.c 2011-08-11 12:52:11 +0000
1605+++ nautilus/contacts-view.c 2011-09-27 18:40:29 +0000
1606@@ -33,9 +33,17 @@
1607 #define AVATAR_SIZE 24
1608 #endif
1609
1610+static void contacts_view_init (ContactsView *cv);
1611+static void contacts_view_class_init (ContactsViewClass *klass);
1612+
1613 G_DEFINE_TYPE(ContactsView, contacts_view, GTK_TYPE_SCROLLED_WINDOW)
1614
1615+#ifdef HAVE_NAUTILUS_30
1616+#define SETTINGS_DOMAIN "org.gnome.nautilus.extensions.ubuntuone"
1617+#define SETTINGS_CONTACTS_KEY "recently-used-contacts"
1618+#else
1619 #define RECENTLY_USED_CONTACTS_KEY "/apps/libubuntuone/recently-used"
1620+#endif
1621
1622 #define CONTACTS_VIEW_COLUMN_NAME 0
1623 #define CONTACTS_VIEW_COLUMN_MARKUP 1
1624@@ -72,10 +80,17 @@
1625 cv->recently_used = NULL;
1626 }
1627
1628+#ifdef HAVE_NAUTILUS_30
1629+ if (cv->settings != NULL) {
1630+ g_object_unref (G_OBJECT (cv->settings));
1631+ cv->settings = NULL;
1632+ }
1633+#else
1634 if (cv->config_client != NULL) {
1635 g_object_unref (G_OBJECT (cv->config_client));
1636 cv->config_client = NULL;
1637 }
1638+#endif
1639
1640 if (cv->source_list != NULL) {
1641 g_object_unref (G_OBJECT (cv->source_list));
1642@@ -138,7 +153,18 @@
1643 GSList *list = NULL;
1644
1645 g_hash_table_foreach (cv->recently_used, (GHFunc) recently_used_to_list_cb, &list);
1646+
1647+#ifdef HAVE_NAUTILUS_30
1648+ {
1649+ gchar **strv = e_client_util_slist_to_strv (list);
1650+ g_settings_set_strv (cv->settings, SETTINGS_CONTACTS_KEY,
1651+ (const gchar * const *) strv);
1652+ g_strfreev (strv);
1653+ }
1654+#else
1655 gconf_client_set_list (cv->config_client, RECENTLY_USED_CONTACTS_KEY, GCONF_VALUE_STRING, list, NULL);
1656+#endif
1657+
1658 g_slist_free (list);
1659 }
1660
1661@@ -554,15 +580,24 @@
1662 cv->added_contacts = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
1663
1664 /* Get recently used contacts */
1665+ cv->recently_used = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) g_free, NULL);
1666+
1667+#ifdef HAVE_NAUTILUS_30
1668+ cv->settings = g_settings_new (SETTINGS_DOMAIN);
1669+ {
1670+ gchar **strv;
1671+
1672+ strv = g_settings_get_strv (cv->settings, SETTINGS_CONTACTS_KEY);
1673+ gl = e_client_util_strv_to_slist ((const gchar * const *) strv);
1674+ g_strfreev (strv);
1675+ }
1676+#else
1677 cv->config_client = gconf_client_get_default ();
1678- cv->recently_used = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) g_free, NULL);
1679-
1680- for (gl = gconf_client_get_list (cv->config_client, RECENTLY_USED_CONTACTS_KEY, GCONF_VALUE_STRING, NULL);
1681- gl != NULL;
1682- gl = gl->next) {
1683- g_hash_table_insert (cv->recently_used, gl->data, gl->data);
1684+ gl = gconf_client_get_list (cv->config_client, RECENTLY_USED_CONTACTS_KEY, GCONF_VALUE_STRING, NULL);
1685+#endif
1686+ for (; gl != NULL; gl = gl->next) {
1687+ g_hash_table_insert (cv->recently_used, g_strdup (gl->data), g_strdup (gl->data));
1688 }
1689-
1690 g_slist_free (gl);
1691
1692 /* Set up the scrolled window */
1693
1694=== modified file 'nautilus/contacts-view.h'
1695--- nautilus/contacts-view.h 2011-08-11 12:52:11 +0000
1696+++ nautilus/contacts-view.h 2011-09-27 18:40:29 +0000
1697@@ -22,10 +22,15 @@
1698 #ifndef __CONTACTS_VIEW_H__
1699 #define __CONTACTS_VIEW_H__
1700
1701-#include <gconf/gconf-client.h>
1702 #include <gtk/gtk.h>
1703 #include <libedataserver/e-source-list.h>
1704 #include <libebook/e-book.h>
1705+#ifdef HAVE_NAUTILUS_30
1706+#include <gio/gio.h>
1707+#include <libedataserver/e-client.h>
1708+#else
1709+#include <gconf/gconf-client.h>
1710+#endif
1711
1712 #define TYPE_CONTACTS_VIEW (contacts_view_get_type ())
1713 #define CONTACTS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONTACTS_VIEW, ContactsView))
1714@@ -37,7 +42,11 @@
1715 typedef struct {
1716 GtkScrolledWindow parent;
1717
1718+#ifdef HAVE_NAUTILUS_30
1719+ GSettings *settings;
1720+#else
1721 GConfClient *config_client;
1722+#endif
1723
1724 /* Data from addressbooks */
1725 ESourceList *source_list;
1726
1727=== modified file 'nautilus/context-menu.c'
1728--- nautilus/context-menu.c 2011-08-11 12:52:11 +0000
1729+++ nautilus/context-menu.c 2011-09-27 18:40:29 +0000
1730@@ -166,10 +166,18 @@
1731 static void
1732 toggle_location_cb (NautilusMenuItem *item, gpointer user_data)
1733 {
1734+#ifdef HAVE_NAUTILUS_30
1735+ GSettings *settings;
1736+ settings = g_settings_new (SETTINGS_DOMAIN);
1737+ g_settings_set_boolean (settings, SETTINGS_SHOWN_KEY, !ubuntuone_is_location_bar_enabled ());
1738+ g_object_unref (settings);
1739+#else
1740 GConfClient *conf_client;
1741
1742 conf_client = gconf_client_get_default ();
1743 gconf_client_set_bool (conf_client, EXPANDER_SHOWN_KEY, !ubuntuone_is_location_bar_enabled (), NULL);
1744+ g_object_unref (conf_client);
1745+#endif
1746 }
1747
1748 gboolean
1749
1750=== modified file 'nautilus/location-widget.c'
1751--- nautilus/location-widget.c 2011-08-11 12:52:11 +0000
1752+++ nautilus/location-widget.c 2011-09-27 18:40:29 +0000
1753@@ -101,11 +101,16 @@
1754 g_signal_handlers_disconnect_by_func (location->uon->syncdaemon, folder_created_cb, location);
1755 g_signal_handlers_disconnect_by_func (location->uon->syncdaemon, folder_deleted_cb, location);
1756
1757+#ifdef HAVE_NAUTILUS_30
1758+ if (location->settings != NULL)
1759+ g_object_unref (G_OBJECT (location->settings));
1760+#else
1761 if (location->conf_notify_id != 0)
1762 gconf_client_notify_remove (location->conf_client, location->conf_notify_id);
1763
1764 if (location->conf_client != NULL)
1765 g_object_unref (G_OBJECT (location->conf_client));
1766+#endif
1767
1768 if (location->path != NULL)
1769 g_free (location->path);
1770@@ -208,14 +213,19 @@
1771 LocationWidget *location = LOCATION_WIDGET (user_data);
1772 gboolean expander_status = gtk_expander_get_expanded (expander);
1773
1774- gconf_client_set_bool (location->conf_client,
1775- EXPANDER_STATUS_KEY,
1776- expander_status,
1777- NULL);
1778+#ifdef HAVE_NAUTILUS_30
1779+ g_settings_set_boolean (location->settings, SETTINGS_EXPAND_KEY, expander_status);
1780+#else
1781+ gconf_client_set_bool (location->conf_client,
1782+ EXPANDER_STATUS_KEY,
1783+ expander_status,
1784+ NULL);
1785+#endif
1786
1787 return FALSE;
1788 }
1789
1790+#ifndef HAVE_NAUTILUS_30
1791 static void
1792 config_changed_cb (GConfClient *client, guint cnx_id, GConfEntry *entry, gpointer user_data)
1793 {
1794@@ -230,6 +240,7 @@
1795 location->expander_status = expanded;
1796 }
1797 }
1798+#endif
1799
1800 static void
1801 allocate_cb (GtkWidget *label, GtkAllocation *allocation, gpointer user_data)
1802@@ -252,6 +263,11 @@
1803 location->info_label = NULL;
1804
1805 /* Read expander status from GConf */
1806+#ifdef HAVE_NAUTILUS_30
1807+ location->settings = g_settings_new (SETTINGS_DOMAIN);
1808+ location->expander_status = g_settings_get_boolean (location->settings,
1809+ SETTINGS_EXPAND_KEY);
1810+#else
1811 location->conf_client = gconf_client_get_default ();
1812 gconf_client_add_dir (location->conf_client, EXPANDER_STATUS_SECTION,
1813 GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
1814@@ -263,6 +279,7 @@
1815 NULL);
1816 location->expander_status = gconf_client_get_bool (location->conf_client,
1817 EXPANDER_STATUS_KEY, NULL);
1818+#endif
1819
1820 /* Create the widgets in the interface */
1821 hbox = gtk_hbox_new (FALSE, 0);
1822@@ -274,6 +291,10 @@
1823 gtk_expander_set_use_markup (GTK_EXPANDER (location->expander), TRUE);
1824 gtk_expander_set_expanded (GTK_EXPANDER (location->expander),
1825 location->expander_status);
1826+#ifdef HAVE_NAUTILUS_30
1827+ g_settings_bind (location->settings, SETTINGS_EXPAND_KEY,
1828+ location->expander, "expanded", G_SETTINGS_BIND_DEFAULT);
1829+#endif
1830 g_signal_connect_after (G_OBJECT (location->expander), "activate",
1831 G_CALLBACK (expander_clicked_cb), location);
1832 gtk_box_pack_start (GTK_BOX (hbox), location->expander, TRUE, TRUE, 0);
1833
1834=== modified file 'nautilus/location-widget.h'
1835--- nautilus/location-widget.h 2011-08-11 12:52:11 +0000
1836+++ nautilus/location-widget.h 2011-09-27 18:40:29 +0000
1837@@ -23,7 +23,6 @@
1838 #define __LOCATION_WIDGET_H__
1839
1840 #include <gtk/gtk.h>
1841-#include <gconf/gconf-client.h>
1842 #include "ubuntuone-nautilus.h"
1843
1844 #define TYPE_LOCATION_WIDGET (location_widget_get_type ())
1845@@ -33,9 +32,17 @@
1846 #define IS_LOCATION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LOCATION_WIDGET))
1847 #define LOCATION_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LOCATION_WIDGET, LocationWidgetClass))
1848
1849+#ifdef HAVE_NAUTILUS_30
1850+#include <gio/gio.h>
1851+#define SETTINGS_DOMAIN "org.gnome.nautilus.extensions.ubuntuone"
1852+#define SETTINGS_EXPAND_KEY "expand-location"
1853+#define SETTINGS_SHOWN_KEY "show-location"
1854+#else
1855+#include <gconf/gconf-client.h>
1856 #define EXPANDER_STATUS_SECTION "/apps/ubuntuone/nautilus"
1857 #define EXPANDER_STATUS_KEY EXPANDER_STATUS_SECTION "/expand-location"
1858 #define EXPANDER_SHOWN_KEY EXPANDER_STATUS_SECTION "/show-location"
1859+#endif
1860
1861 typedef struct {
1862 GtkHBox parent;
1863@@ -50,8 +57,12 @@
1864 GtkWidget *spinner;
1865 GtkWidget *toggle_button;
1866
1867+#ifdef HAVE_NAUTILUS_30
1868+ GSettings *settings;
1869+#else
1870 GConfClient *conf_client;
1871 guint conf_notify_id;
1872+#endif
1873 } LocationWidget;
1874
1875 typedef struct {
1876
1877=== modified file 'nautilus/share-dialog.c'
1878--- nautilus/share-dialog.c 2011-08-11 12:52:11 +0000
1879+++ nautilus/share-dialog.c 2011-09-27 18:40:29 +0000
1880@@ -116,31 +116,30 @@
1881 (_("Share")), GTK_RESPONSE_ACCEPT,
1882 NULL);
1883 gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
1884- gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT, FALSE);
1885+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
1886+ GTK_RESPONSE_ACCEPT, FALSE);
1887 gtk_window_set_icon_name (GTK_WINDOW (dialog), "ubuntuone");
1888 g_signal_connect (G_OBJECT (dialog), "response",
1889 G_CALLBACK (dialog_response_cb), NULL);
1890
1891 area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
1892
1893- table = gtk_table_new (3, 2, FALSE);
1894- gtk_table_set_row_spacings (GTK_TABLE (table), 12);
1895- gtk_table_set_col_spacings (GTK_TABLE (table), 6);
1896- gtk_container_set_border_width (GTK_CONTAINER (table), 7);
1897- gtk_widget_show (table);
1898- gtk_container_add (GTK_CONTAINER (area), table);
1899+ table = gtk_vbox_new (FALSE, 12);
1900+ gtk_container_set_border_width (GTK_CONTAINER (table), 7);
1901+ gtk_box_pack_start (GTK_BOX (area), table, TRUE, TRUE, 0);
1902+ gtk_widget_show (table);
1903
1904 dialog->user_picker = u1_contacts_picker_new ();
1905 g_signal_connect (G_OBJECT (dialog->user_picker), "selection-changed",
1906 G_CALLBACK (picker_selection_changed_cb), dialog);
1907- gtk_table_attach (GTK_TABLE (table), dialog->user_picker, 0, 2, 0, 2,
1908- GTK_FILL | GTK_EXPAND | GTK_SHRINK,
1909- GTK_FILL | GTK_EXPAND | GTK_SHRINK, 3, 3);
1910+ gtk_box_pack_start (GTK_BOX (table), dialog->user_picker, TRUE, TRUE, 0);
1911 gtk_widget_show (dialog->user_picker);
1912
1913 dialog->allow_mods = gtk_check_button_new_with_mnemonic (_("_Allow Modification"));
1914- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->allow_mods), TRUE); /* Default to RW */
1915- gtk_table_attach (GTK_TABLE (table), dialog->allow_mods, 0, 2, 2, 3, GTK_FILL, GTK_FILL, 3, 3);
1916+ /* Default to RW */
1917+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->allow_mods),
1918+ TRUE);
1919+ gtk_box_pack_end (GTK_BOX (table), dialog->allow_mods, FALSE, FALSE, 0);
1920 gtk_widget_show (dialog->allow_mods);
1921
1922 gtk_widget_set_size_request (GTK_WIDGET (dialog), 500, 450);
1923
1924=== modified file 'nautilus/u1-contacts-picker.c'
1925--- nautilus/u1-contacts-picker.c 2011-08-11 12:52:11 +0000
1926+++ nautilus/u1-contacts-picker.c 2011-09-27 18:40:29 +0000
1927@@ -111,9 +111,9 @@
1928 U1ContactsPicker *picker = U1_CONTACTS_PICKER (user_data);
1929
1930 if (strlen (gtk_entry_get_text (GTK_ENTRY (picker->priv->search_entry))) > 0)
1931- label = g_strdup_printf (ngettext ("Found %d match", "Found %d matches", total), total);
1932+ label = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "Found %d match", "Found %d matches", total), total);
1933 else
1934- label = g_strdup_printf (ngettext ("%d contact", "%d contacts", total), total);
1935+ label = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "%d contact", "%d contacts", total), total);
1936 gtk_label_set_text (GTK_LABEL (picker->priv->total_label), label);
1937
1938 g_free (label);
1939@@ -188,7 +188,7 @@
1940 G_CALLBACK (add_contact_cb), picker);
1941 gtk_table_attach (GTK_TABLE (table), picker->priv->add_contact_button, 1, 2, 0, 1, GTK_FILL, GTK_FILL, 3, 3);
1942
1943- picker->priv->total_label = gtk_label_new (ngettext ("0 contact", "0 contacts", 0));
1944+ picker->priv->total_label = gtk_label_new (g_dngettext (GETTEXT_PACKAGE, "0 contact", "0 contacts", 0));
1945 gtk_widget_show (picker->priv->total_label);
1946 gtk_table_attach (GTK_TABLE (table), picker->priv->total_label, 2, 3, 0, 1, GTK_FILL, GTK_FILL, 3, 3);
1947
1948
1949=== modified file 'nautilus/utils.c'
1950--- nautilus/utils.c 2011-08-11 12:52:11 +0000
1951+++ nautilus/utils.c 2011-09-27 18:40:29 +0000
1952@@ -168,9 +168,17 @@
1953 gboolean
1954 ubuntuone_is_location_bar_enabled (void)
1955 {
1956- GConfClient *conf_client;
1957+ gboolean show_location;
1958+
1959+#ifdef HAVE_NAUTILUS_30
1960+ GSettings *settings;
1961+
1962+ settings = g_settings_new (SETTINGS_DOMAIN);
1963+ show_location = g_settings_get_boolean (settings, SETTINGS_SHOWN_KEY);
1964+ g_object_unref (settings);
1965+#else
1966+ GConfClient *conf_client;
1967 GConfValue * show_location_value;
1968- gboolean show_location;
1969
1970 conf_client = gconf_client_get_default ();
1971 show_location_value = gconf_client_get (conf_client, EXPANDER_SHOWN_KEY, NULL);
1972@@ -182,6 +190,8 @@
1973 show_location = gconf_value_get_bool (show_location_value);
1974 gconf_value_free (show_location_value);
1975 }
1976+ g_object_unref (conf_client);
1977+#endif
1978
1979 return show_location;
1980 }
1981
1982=== added file 'ubuntuone-client-gnome.convert'
1983--- ubuntuone-client-gnome.convert 1970-01-01 00:00:00 +0000
1984+++ ubuntuone-client-gnome.convert 2011-09-27 18:40:29 +0000
1985@@ -0,0 +1,9 @@
1986+[org.gnome.settings-daemon.plugins.ubuntuone]
1987+active = /apps/gnome_settings_daemon/plugins/ubuntuone/active
1988+priority = /apps/gnome_settings_daemon/plugins/ubuntuone/priority
1989+checked-bookmark-file = /apps/gnome_settings_daemon/plugins/ubuntuone/checked_bookmark_file
1990+
1991+[org.gnome.nautilus.nautlius.extensions.ubuntuone]
1992+recently-used-contacts = /apps/libubuntuone/recently-used
1993+expand-location = /apps/ubuntuone/nautilus/expand-location
1994+show-location = /apps/ubuntuone/nautilus/show-location

Subscribers

People subscribed via source and target branches

to all changes: