Merge lp:~charlesk/libdbusmenu/lp-1083399 into lp:libdbusmenu/13.04

Proposed by Charles Kerr
Status: Merged
Merged at revision: 435
Proposed branch: lp:~charlesk/libdbusmenu/lp-1083399
Merge into: lp:libdbusmenu/13.04
Diff against target: 326 lines (+23/-221)
7 files modified
autogen.sh (+2/-0)
configure.ac (+1/-1)
docs/libdbusmenu-glib/reference/Makefile.am (+9/-12)
docs/libdbusmenu-gtk/reference/Makefile.am (+10/-11)
gtk-doc.local.make (+0/-194)
libdbusmenu-glib/menuitem.c (+0/-2)
libdbusmenu-glib/menuitem.h (+1/-1)
To merge this branch: bzr merge lp:~charlesk/libdbusmenu/lp-1083399
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Needs Fixing
Ted Gould (community) Needs Fixing
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+137885@code.launchpad.net

Commit message

gtk-doc fixes

Description of the change

These are the same changes as before, but based off of trunk rather than inline s.t. they can land before the inline patch.

1. garden variety gtk-doc fixes for code and comments that gtk-doc threw errors on because it couldn't parse them.

2. update gtk-doc use from 1.4 to 1.14 wrt removing dummy templates and especially wrt not bundling our own gtk-doc makefiles, but instead letting gtkdocize get a fresh copy on its own when invoked by autogen. The newer makefile rules that ship with gtk-doc fix a bug #1083399 issue of not finding documents on code generated in the builddir from a template file in the srcdir.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Approve

review: Approve
Revision history for this message
Ted Gould (ted) wrote :

This removes the testing to make sure the docs are complete. This line needs to be uncommented.

#TESTS = $(GTKDOC_CHECK)

Twice in fact :-)

review: Needs Fixing
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Tests would fail a different way (with tests uncommented as Ted suggests):

make[4]: Leaving directory `/«PKGBUILDDIR»/builddir/gtk2/tests'
make[3]: Leaving directory `/«PKGBUILDDIR»/builddir/gtk2/tests'
Making check in docs
make[3]: Entering directory `/«PKGBUILDDIR»/builddir/gtk2/docs'
Making check in libdbusmenu-glib
make[4]: Entering directory `/«PKGBUILDDIR»/builddir/gtk2/docs/libdbusmenu-glib'
Making check in reference
make[5]: Entering directory `/«PKGBUILDDIR»/builddir/gtk2/docs/libdbusmenu-glib/reference'
make check-TESTS
make[6]: Entering directory `/«PKGBUILDDIR»/builddir/gtk2/docs/libdbusmenu-glib/reference'
Running suite(s): gtk-doc-libdbusmenu-glib
libdbusmenu-glib-undocumented.txt:1:E: 139 undocumented or incomplete symbols
/«PKGBUILDDIR»/builddir/gtk2/docs/libdbusmenu-glib/reference/libdbusmenu-glib-undeclared.txt:1:E: 129 undeclared symbols
50.0%: Checks 4, Failures: 2
FAIL: /usr/bin/gtkdoc-check
==================================
1 of 1 test failed
Please report to <email address hidden>
==================================

review: Needs Fixing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'autogen.sh'
2--- autogen.sh 2010-06-22 15:37:15 +0000
3+++ autogen.sh 2012-12-04 15:47:23 +0000
4@@ -7,6 +7,8 @@
5 exit 1
6 }
7
8+gtkdocize || exit 1
9+
10 USE_GNOME2_MACROS=1 \
11 USE_COMMON_DOC_BUILD=yes \
12 gnome-autogen.sh --enable-gtk-doc $@
13
14=== modified file 'configure.ac'
15--- configure.ac 2012-10-03 15:57:01 +0000
16+++ configure.ac 2012-12-04 15:47:23 +0000
17@@ -27,7 +27,7 @@
18 # GTK Doc
19 ###########################
20
21-GTK_DOC_CHECK([1.4])
22+GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
23 GNOME_DOC_INIT
24
25 ###########################
26
27=== modified file 'docs/libdbusmenu-glib/reference/Makefile.am'
28--- docs/libdbusmenu-glib/reference/Makefile.am 2011-02-24 15:38:18 +0000
29+++ docs/libdbusmenu-glib/reference/Makefile.am 2012-12-04 15:47:23 +0000
30@@ -78,7 +78,7 @@
31 GTKDOC_LIBS=$(top_builddir)/libdbusmenu-glib/libdbusmenu-glib.la
32
33 # This includes the standard gtk-doc make rules, copied by gtkdocize.
34-include $(top_srcdir)/gtk-doc.local.make
35+include $(top_srcdir)/gtk-doc.make
36
37 # Other files to distribute
38 # e.g. EXTRA_DIST += version.xml.in
39@@ -89,14 +89,11 @@
40 # for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
41 #DISTCLEANFILES +=
42
43-# Comment this out if you want your docs-status tested during 'make check'
44-TESTS = gtkdoc-in-srcdir
45-
46-gtkdoc-in-srcdir: Makefile.am
47- @echo "#!/bin/sh" > $@
48- @echo "cd \"$(srcdir)\"" >> $@
49- @echo "$(GTKDOC_CHECK)" >> $@
50- @chmod +x $@
51-
52-DISTCLEANFILES = gtkdoc-in-srcdir
53-
54+# Comment this out if you want 'make check' to test you doc status
55+# and run some sanity checks
56+if ENABLE_GTK_DOC
57+ TESTS_ENVIRONMENT = cd $(srcdir) && \
58+ DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
59+ SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir)
60+#TESTS = $(GTKDOC_CHECK)
61+endif
62
63=== removed directory 'docs/libdbusmenu-glib/reference/tmpl'
64=== removed file 'docs/libdbusmenu-glib/reference/tmpl/dummy.sgml'
65=== modified file 'docs/libdbusmenu-gtk/reference/Makefile.am'
66--- docs/libdbusmenu-gtk/reference/Makefile.am 2011-08-24 20:41:09 +0000
67+++ docs/libdbusmenu-gtk/reference/Makefile.am 2012-12-04 15:47:23 +0000
68@@ -78,7 +78,7 @@
69 GTKDOC_LIBS=$(top_builddir)/libdbusmenu-gtk/libdbusmenu-gtk$(VER).la $(DBUSMENUGLIB_LIBS) $(DBUSMENUGTK_LIBS)
70
71 # This includes the standard gtk-doc make rules, copied by gtkdocize.
72-include $(top_srcdir)/gtk-doc.local.make
73+include $(top_srcdir)/gtk-doc.make
74
75 # Other files to distribute
76 # e.g. EXTRA_DIST += version.xml.in
77@@ -89,13 +89,12 @@
78 # for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
79 #DISTCLEANFILES +=
80
81-# Comment this out if you want your docs-status tested during 'make check'
82-TESTS = gtkdoc-in-srcdir
83-
84-gtkdoc-in-srcdir: Makefile.am
85- @echo "#!/bin/sh" > $@
86- @echo "cd \"$(srcdir)\"" >> $@
87- @echo "$(GTKDOC_CHECK)" >> $@
88- @chmod +x $@
89-
90-DISTCLEANFILES = gtkdoc-in-srcdir
91+# Comment this out if you want 'make check' to test you doc status
92+# and run some sanity checks
93+if ENABLE_GTK_DOC
94+ TESTS_ENVIRONMENT = cd $(srcdir) && \
95+ DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
96+ SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir)
97+#TESTS = $(GTKDOC_CHECK)
98+endif
99+
100
101=== removed directory 'docs/libdbusmenu-gtk/reference/tmpl'
102=== removed file 'docs/libdbusmenu-gtk/reference/tmpl/dummy.sgml'
103=== removed file 'gtk-doc.local.make'
104--- gtk-doc.local.make 2010-06-09 16:24:31 +0000
105+++ gtk-doc.local.make 1970-01-01 00:00:00 +0000
106@@ -1,194 +0,0 @@
107-# -*- mode: makefile -*-
108-
109-####################################
110-# Everything below here is generic #
111-####################################
112-
113-if GTK_DOC_USE_LIBTOOL
114-GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
115-GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
116-GTKDOC_RUN = $(LIBTOOL) --mode=execute
117-else
118-GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
119-GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
120-GTKDOC_RUN = sh -c
121-endif
122-
123-# We set GPATH here; this gives us semantics for GNU make
124-# which are more like other make's VPATH, when it comes to
125-# whether a source that is a target of one rule is then
126-# searched for in VPATH/GPATH.
127-#
128-GPATH = $(srcdir)
129-
130-TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
131-
132-EXTRA_DIST = \
133- $(content_files) \
134- $(HTML_IMAGES) \
135- $(DOC_MAIN_SGML_FILE)
136-
137-DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
138- $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp
139-
140-SCANOBJ_FILES = \
141- $(DOC_MODULE).args \
142- $(DOC_MODULE).hierarchy \
143- $(DOC_MODULE).interfaces \
144- $(DOC_MODULE).prerequisites \
145- $(DOC_MODULE).signals
146-
147-REPORT_FILES = \
148- $(DOC_MODULE)-undocumented.txt \
149- $(DOC_MODULE)-undeclared.txt \
150- $(DOC_MODULE)-unused.txt
151-
152-CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
153-
154-if ENABLE_GTK_DOC
155-all-local: html-build.stamp
156-else
157-all-local:
158-endif
159-
160-docs: html-build.stamp
161-
162-$(REPORT_FILES): sgml-build.stamp
163-
164-#### scan ####
165-
166-scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
167- @echo 'gtk-doc: Scanning header files'
168- @-chmod -R u+w $(srcdir)
169- cd $(srcdir) && \
170- gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
171- if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \
172- CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
173- else \
174- cd $(srcdir) ; \
175- for i in $(SCANOBJ_FILES) ; do \
176- test -f $$i || touch $$i ; \
177- done \
178- fi
179- touch scan-build.stamp
180-
181-$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
182- @true
183-
184-#### templates ####
185-
186-tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
187- @echo 'gtk-doc: Rebuilding template files'
188- @-chmod -R u+w $(srcdir)
189- cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
190- touch tmpl-build.stamp
191-
192-tmpl.stamp: tmpl-build.stamp
193- @true
194-
195-tmpl/*.sgml:
196- @true
197-
198-
199-#### xml ####
200-
201-sgml-build.stamp: tmpl.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files)
202- @echo 'gtk-doc: Building XML'
203- @-chmod -R u+w $(srcdir)
204- cd $(srcdir) && \
205- gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS)
206- touch sgml-build.stamp
207-
208-sgml.stamp: sgml-build.stamp
209- @true
210-
211-#### html ####
212-
213-html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
214- @echo 'gtk-doc: Building HTML'
215- @-chmod -R u+w $(srcdir)
216- rm -rf $(srcdir)/html
217- mkdir $(srcdir)/html
218- mkhtml_options=""; \
219- gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \
220- if test "$(?)" = "0"; then \
221- mkhtml_options=--path="$(srcdir)"; \
222- fi
223- cd $(srcdir)/html && gtkdoc-mkhtml $(mkhtml_options) $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
224- test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
225- @echo 'gtk-doc: Fixing cross-references'
226- cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
227- touch html-build.stamp
228-
229-##############
230-
231-clean-local:
232- rm -f *~ *.bak
233- rm -rf .libs
234-
235-distclean-local:
236- cd $(srcdir) && \
237- rm -rf xml $(REPORT_FILES) \
238- $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
239-
240-maintainer-clean-local: clean
241- cd $(srcdir) && rm -rf xml html
242-
243-install-data-local:
244- installfiles=`echo $(srcdir)/html/*`; \
245- if test "$$installfiles" = '$(srcdir)/html/*'; \
246- then echo '-- Nothing to install' ; \
247- else \
248- if test -n "$(DOC_MODULE_VERSION)"; then \
249- installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
250- else \
251- installdir="$(DESTDIR)$(TARGET_DIR)"; \
252- fi; \
253- $(mkinstalldirs) $${installdir} ; \
254- for i in $$installfiles; do \
255- echo '-- Installing '$$i ; \
256- $(INSTALL_DATA) $$i $${installdir}; \
257- done; \
258- if test -n "$(DOC_MODULE_VERSION)"; then \
259- mv -f $${installdir}/$(DOC_MODULE).devhelp2 \
260- $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \
261- mv -f $${installdir}/$(DOC_MODULE).devhelp \
262- $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp; \
263- fi; \
264- ! which gtkdoc-rebase >/dev/null 2>&1 || \
265- gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir} ; \
266- fi
267-
268-uninstall-local:
269- if test -n "$(DOC_MODULE_VERSION)"; then \
270- installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
271- else \
272- installdir="$(DESTDIR)$(TARGET_DIR)"; \
273- fi; \
274- rm -rf $${installdir}
275-
276-#
277-# Require gtk-doc when making dist
278-#
279-if ENABLE_GTK_DOC
280-dist-check-gtkdoc:
281-else
282-dist-check-gtkdoc:
283- @echo "*** gtk-doc must be installed and enabled in order to make dist"
284- @false
285-endif
286-
287-dist-hook: dist-check-gtkdoc dist-hook-local
288- mkdir $(distdir)/tmpl
289- mkdir $(distdir)/xml
290- mkdir $(distdir)/html
291- -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
292- -cp $(srcdir)/xml/*.xml $(distdir)/xml
293- -cp $(srcdir)/html/* $(distdir)/html
294- -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
295- -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
296- cd $(distdir) && rm -f $(DISTCLEANFILES)
297- ! which gtkdoc-rebase >/dev/null 2>&1 || \
298- gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
299-
300-.PHONY : dist-hook-local docs
301
302=== modified file 'libdbusmenu-glib/menuitem.c'
303--- libdbusmenu-glib/menuitem.c 2012-10-26 11:56:50 +0000
304+++ libdbusmenu-glib/menuitem.c 2012-12-04 15:47:23 +0000
305@@ -1590,8 +1590,6 @@
306 *
307 * This function sets the internal value of whether this is a
308 * root node or not.
309- *
310- * Return value: None
311 */
312 void
313 dbusmenu_menuitem_set_root (DbusmenuMenuitem * mi, gboolean root)
314
315=== modified file 'libdbusmenu-glib/menuitem.h'
316--- libdbusmenu-glib/menuitem.h 2012-10-07 15:35:50 +0000
317+++ libdbusmenu-glib/menuitem.h 2012-12-04 15:47:23 +0000
318@@ -455,7 +455,7 @@
319 /* Virtual functions */
320 dbusmenu_menuitem_buildvariant_slot_t buildvariant;
321 void (*handle_event) (DbusmenuMenuitem * mi, const gchar * name, GVariant * variant, guint timestamp);
322- void (*send_about_to_show) (DbusmenuMenuitem * mi, void (*cb) (DbusmenuMenuitem * mi, gpointer user_data), gpointer cb_data);
323+ void (*send_about_to_show) (DbusmenuMenuitem * mi, dbusmenu_menuitem_about_to_show_cb cb, gpointer cb_data);
324
325 void (*show_to_user) (DbusmenuMenuitem * mi, guint timestamp, gpointer cb_data);
326 gboolean (*about_to_show) (void);

Subscribers

People subscribed via source and target branches

to all changes: