[gnome-mag] prep for 0.16.0 release
- From: Carlos Eduardo Rodrigues Diógenes <carlosd src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-mag] prep for 0.16.0 release
- Date: Mon, 1 Feb 2010 17:31:13 +0000 (UTC)
commit 51afff0dc369502aa2ca069d5c67edb4add00cf9
Author: Carlos Eduardo Rodrigues DiÃgenes <cerdiogenes gmail com>
Date: Mon Feb 1 15:30:04 2010 -0200
prep for 0.16.0 release
Makefile.am | 7 +-
NEWS | 9 +
README | 2 +-
configure.in | 34 ++++-
magnifier/Makefile.am | 2 +-
magnifier/zoom-region.c | 2 +
po/POTFILES.in | 11 --
po/POTFILES.in.in | 3 +
tools/c-constants-generator.xsl | 308 +++++++++++++++++++++++++++++++++++++++
tools/identity.xsl | 7 +
tools/spec-to-introspect.xsl | 53 +++++++
11 files changed, 416 insertions(+), 22 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 5a45d0e..ea02899 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,14 +9,17 @@ EXTRA_DIST=gnome-mag-1.0.pc.in \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
- ChangeLog.pre-git
+ ChangeLog.pre-git \
+ tools \
+ po/POTFILES.in.in
doc_tarball_files = \
docs/reference/html
DISTCLEANFILES = intltool-extract \
intltool-merge \
- intltool-update
+ intltool-update \
+ po/POTFILES.in
gnome-mag-1-0-docs.tar.gz:
tar cf - $(doc_tarball_files) | gzip -c --best >$@
diff --git a/NEWS b/NEWS
index 129a2fe..97415bb 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,12 @@
+What's new in gnome-mag-0.16.0:
+
+* New features:
+ Added D-BUS support.
+
+* Translations:
+ Dumitru MiÈ?u Moldovan (ro), Jamil Ahmed (bn), Thomas Thurman (en shaw)
+
+
What's new in gnome-mag-0.15.9:
* Translations:
diff --git a/README b/README
index eb51495..3f4d4e9 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-This is gnome-mag version 0.15.9 (Stable)
+This is gnome-mag version 0.16.0 (Unstable)
This directory contains the gnome-mag magnification
service definition and sample implementation.
diff --git a/configure.in b/configure.in
index 9255b21..d156dad 100644
--- a/configure.in
+++ b/configure.in
@@ -299,10 +299,36 @@ if test -z "$DEFAULT_GMAG_INTROSPECTION_PATH"; then
DEFAULT_GMAG_INTROSPECTION_PATH=gnome-mag/dbus
fi
+if test "x$have_colorblind" = "xyes"; then
+ CB_OUT="colorblind/Makefile
+colorblind/defs.py
+colorblind/ui/Makefile
+colorblind/osutils/Makefile
+colorblind/data/Makefile
+colorblind/data/art/Makefile
+colorblind/keybinder/Makefile"
+ CB_POT="colorblind/ColorblindApplet.py
+colorblind/GNOME_Magnifier_ColorblindApplet.server.in.in
+colorblind/Keybinder.py
+colorblind/data/colorblind-applet.schemas.in
+colorblind/data/Colorblind_Applet.xml
+[[type: gettext/glade]]colorblind/data/colorblind-prefs.ui
+colorblind/ui/WindowUI.py
+colorblind/ui/About.py
+colorblind/ui/ColorblindPreferencesUI.py"
+else
+ CB_OUT=""
+ CB_POT=""
+fi
+
+AC_SUBST(CB_POT)
+AM_SUBST_NOTMAKE(CB_POT)
+
AC_OUTPUT([
Makefile
gnome-mag-1.0.pc
gnome-mag-1.0-uninstalled.pc
+po/POTFILES.in
po/Makefile.in
idl/Makefile
magnifier/Makefile
@@ -313,11 +339,5 @@ test/Makefile
docs/Makefile
docs/reference/Makefile
docs/man/Makefile
-colorblind/Makefile
-colorblind/defs.py
-colorblind/ui/Makefile
-colorblind/osutils/Makefile
-colorblind/data/Makefile
-colorblind/data/art/Makefile
-colorblind/keybinder/Makefile
+$CB_OUT
])
diff --git a/magnifier/Makefile.am b/magnifier/Makefile.am
index c757711..770ade2 100644
--- a/magnifier/Makefile.am
+++ b/magnifier/Makefile.am
@@ -97,7 +97,7 @@ DISTCLEANFILES += org.freedesktop.gnome.Magnifier.service
@INTLTOOL_SERVER_RULE@
-EXTRA_DIST = $(server_in_files).in
+EXTRA_DIST = $(server_in_files).in $(service_in_files)
$(IDL_OUT) : $(IDL) $(ORBIT_IDL)
$(ORBIT_IDL) $(IDLFLAGS) $(IDL)
diff --git a/magnifier/zoom-region.c b/magnifier/zoom-region.c
index 9352e17..c5055dd 100644
--- a/magnifier/zoom-region.c
+++ b/magnifier/zoom-region.c
@@ -3657,6 +3657,8 @@ impl_dbus_zoom_region_update_pointer (ZoomRegion *zoom_region)
#endif
zoom_region_update_cursor (zoom_region, 0, 0, NULL);
+
+ return TRUE;
}
gboolean
diff --git a/po/POTFILES.in.in b/po/POTFILES.in.in
new file mode 100644
index 0000000..29f5cc1
--- /dev/null
+++ b/po/POTFILES.in.in
@@ -0,0 +1,3 @@
+ CB_POT@
+magnifier/GNOME_Magnifier.server.in.in
+magnifier/magnifier-main.c
diff --git a/tools/c-constants-generator.xsl b/tools/c-constants-generator.xsl
new file mode 100644
index 0000000..bbcd8cf
--- /dev/null
+++ b/tools/c-constants-generator.xsl
@@ -0,0 +1,308 @@
+<!-- Stylesheet to extract C enumerations from the AT-SPI spec.
+
+Copyright (C) 2006, 2007 Collabora Limited
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"
+ xmlns:str="http://exslt.org/strings"
+ exclude-result-prefixes="str tp">
+
+ <xsl:output method="text" indent="no" encoding="ascii"/>
+
+ <xsl:param name="mixed-case-prefix" select="''"/>
+
+ <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
+ <xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
+
+ <xsl:variable name="lower-case-prefix" select="translate($mixed-case-prefix, $upper, $lower)"/>
+
+
+ <xsl:template match="tp:flags">
+ <xsl:variable name="name">
+ <xsl:choose>
+ <xsl:when test="@plural">
+ <xsl:value-of select="@plural"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="value-prefix">
+ <xsl:choose>
+ <xsl:when test="@singular">
+ <xsl:value-of select="@singular"/>
+ </xsl:when>
+ <xsl:when test="@value-prefix">
+ <xsl:value-of select="@value-prefix"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:text>/** </xsl:text>
+ <xsl:text> * </xsl:text>
+ <xsl:value-of select="concat($mixed-case-prefix, $name)"/>
+ <xsl:text>: </xsl:text>
+ <xsl:apply-templates mode="flag-or-enumvalue-gtkdoc">
+ <xsl:with-param name="value-prefix" select="$value-prefix"/>
+ </xsl:apply-templates>
+ <xsl:text> * </xsl:text>
+ <xsl:if test="tp:docstring">
+ <xsl:text> * <![CDATA[</xsl:text>
+ <xsl:value-of select="translate(string (tp:docstring), ' ', ' ')"/>
+ <xsl:text>]]> </xsl:text>
+ <xsl:text> * </xsl:text>
+ </xsl:if>
+ <xsl:text> * Bitfield/set of flags generated from the AT-SPI specification. </xsl:text>
+ <xsl:text> */ </xsl:text>
+ <xsl:text>typedef enum { </xsl:text>
+ <xsl:apply-templates>
+ <xsl:with-param name="value-prefix" select="$value-prefix"/>
+ </xsl:apply-templates>
+ <xsl:text>} </xsl:text>
+ <xsl:value-of select="concat($mixed-case-prefix, $name)"/>
+ <xsl:text>; </xsl:text>
+ <xsl:text> </xsl:text>
+ </xsl:template>
+
+ <xsl:template match="text()" mode="flag-or-enumvalue-gtkdoc"/>
+
+ <xsl:template match="tp:enumvalue" mode="flag-or-enumvalue-gtkdoc">
+ <xsl:param name="value-prefix"/>
+ <xsl:variable name="suffix">
+ <xsl:choose>
+ <xsl:when test="ancestor::interface">
+ <xsl:value-of select="concat(str:replace(ancestor::interface/@name, 'org.freedesktop.atspi.', ''), '_', @suffix)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@suffix"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:text> * @</xsl:text>
+ <xsl:value-of select="concat($mixed-case-prefix, $suffix)"/>
+ <xsl:text>: <![CDATA[</xsl:text>
+ <xsl:value-of select="translate(string(tp:docstring), ' ', ' ')"/>
+ <xsl:text>]]> </xsl:text>
+ </xsl:template>
+
+ <xsl:template match="tp:flag" mode="flag-or-enumvalue-gtkdoc">
+ <xsl:param name="value-prefix"/>
+ <xsl:text> * @</xsl:text>
+ <xsl:value-of select="translate(concat($mixed-case-prefix, $value-prefix, '_', @suffix), $lower, $upper)"/>
+ <xsl:text>: <![CDATA[</xsl:text>
+ <xsl:value-of select="translate(string(tp:docstring), ' ', ' ')"/>
+ <xsl:text>]]> </xsl:text>
+ </xsl:template>
+
+ <xsl:template match="tp:enum">
+ <xsl:variable name="name">
+ <xsl:choose>
+ <xsl:when test="ancestor::interface">
+ <xsl:value-of select="concat(str:replace(ancestor::interface/@name, 'org.freedesktop.atspi.', ''), '_', @name)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="value-prefix">
+ <xsl:choose>
+ <xsl:when test="@singular">
+ <xsl:value-of select="@singular"/>
+ </xsl:when>
+ <xsl:when test="@value-prefix">
+ <xsl:value-of select="@value-prefix"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="name-plural">
+ <xsl:choose>
+ <xsl:when test="@plural">
+ <xsl:value-of select="@plural"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@name"/><xsl:text>s</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:text>/** </xsl:text>
+ <xsl:text> * </xsl:text>
+ <xsl:value-of select="concat($mixed-case-prefix, $name)"/>
+ <xsl:text>: </xsl:text>
+ <xsl:apply-templates mode="flag-or-enumvalue-gtkdoc">
+ <xsl:with-param name="value-prefix" select="$value-prefix"/>
+ </xsl:apply-templates>
+ <xsl:text> * </xsl:text>
+ <xsl:if test="tp:docstring">
+ <xsl:text> * <![CDATA[</xsl:text>
+ <xsl:value-of select="translate(string (tp:docstring), ' ', ' ')"/>
+ <xsl:text>]]> </xsl:text>
+ <xsl:text> * </xsl:text>
+ </xsl:if>
+ <xsl:text> * Bitfield/set of flags generated from the AT-SPI specification. </xsl:text>
+ <xsl:text> */ </xsl:text>
+ <xsl:text>typedef enum { </xsl:text>
+ <xsl:apply-templates>
+ <xsl:with-param name="value-prefix" select="$value-prefix"/>
+ </xsl:apply-templates>
+ <xsl:text>} </xsl:text>
+ <xsl:value-of select="concat($mixed-case-prefix, $name)"/>
+ <xsl:text>; </xsl:text>
+ <xsl:text> </xsl:text>
+ <xsl:text>/** </xsl:text>
+ <xsl:text> * NUM_</xsl:text>
+ <xsl:value-of select="translate(concat($mixed-case-prefix, $name-plural), $lower, $upper)"/>
+ <xsl:text>: </xsl:text>
+ <xsl:text> * </xsl:text>
+ <xsl:text> * 1 higher than the highest valid value of #</xsl:text>
+ <xsl:value-of select="concat($mixed-case-prefix, $name)"/>
+ <xsl:text>. </xsl:text>
+ <xsl:text> */ </xsl:text>
+ <xsl:text>#define NUM_</xsl:text>
+ <xsl:value-of select="translate(concat($mixed-case-prefix, $name-plural), $lower, $upper)"/>
+ <xsl:text> (</xsl:text>
+ <xsl:value-of select="tp:enumvalue[position() = last()]/@value"/>
+ <xsl:text>+1) </xsl:text>
+ <xsl:text> </xsl:text>
+ </xsl:template>
+
+ <xsl:template match="tp:flags/tp:flag">
+ <xsl:param name="value-prefix"/>
+ <xsl:variable name="suffix">
+ <xsl:choose>
+ <xsl:when test="@suffix">
+ <xsl:value-of select="@suffix"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="name" select="translate(concat($mixed-case-prefix, $value-prefix, '_', $suffix), $lower, $upper)"/>
+
+ <xsl:if test="@name and @suffix and @name != @suffix">
+ <xsl:message terminate="yes">
+ <xsl:text>Flag name </xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text> != suffix </xsl:text>
+ <xsl:value-of select="@suffix"/>
+ <xsl:text> </xsl:text>
+ </xsl:message>
+ </xsl:if>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$name"/>
+ <xsl:text> = </xsl:text>
+ <xsl:value-of select="@value"/>
+ <xsl:text>, </xsl:text>
+ </xsl:template>
+
+ <xsl:template match="tp:enum/tp:enumvalue">
+ <xsl:param name="value-prefix"/>
+ <xsl:variable name="suffix">
+ <xsl:choose>
+ <xsl:when test="ancestor::interface">
+ <xsl:value-of select="concat(str:replace(ancestor::interface/@name, 'org.freedesktop.atspi.', ''), '_', @suffix)"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@suffix"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="name" select="concat($mixed-case-prefix, $suffix)"/>
+
+ <xsl:if test="@name and @suffix and @name != @suffix">
+ <xsl:message terminate="yes">
+ <xsl:text>Enumvalue name </xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text> != suffix </xsl:text>
+ <xsl:value-of select="@suffix"/>
+ <xsl:text> </xsl:text>
+ </xsl:message>
+ </xsl:if>
+
+ <xsl:if test="preceding-sibling::tp:enumvalue and number(preceding-sibling::tp:enumvalue[1]/@value) > number(@value)">
+ <xsl:message terminate="yes">
+ <xsl:text>Enum values must be in ascending numeric order, but </xsl:text>
+ <xsl:value-of select="$name"/>
+ <xsl:text> is less than the previous value</xsl:text>
+ </xsl:message>
+ </xsl:if>
+
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="$name"/>
+ <xsl:text>, </xsl:text>
+ </xsl:template>
+
+ <xsl:template match="tp:flag">
+ <xsl:message terminate="yes">tp:flag found outside tp:flags </xsl:message>
+ </xsl:template>
+
+ <xsl:template match="tp:enumvalue">
+ <xsl:message terminate="yes">tp:enumvalue found outside tp:enum </xsl:message>
+ </xsl:template>
+
+ <xsl:template match="text()"/>
+
+ <xsl:template match="/tp:spec">
+ <xsl:if test="$mixed-case-prefix = ''">
+ <xsl:message terminate="yes">
+ <xsl:text>mixed-case-prefix param must be set </xsl:text>
+ </xsl:message>
+ </xsl:if>
+
+ <xsl:text>/* Generated from </xsl:text>
+ <xsl:value-of select="tp:title"/>
+ <xsl:if test="tp:version">
+ <xsl:text>, version </xsl:text>
+ <xsl:value-of select="tp:version"/>
+ </xsl:if>
+ <xsl:text> </xsl:text>
+ <xsl:text> </xsl:text>
+ <xsl:for-each select="tp:copyright">
+ <xsl:value-of select="."/>
+ <xsl:text> </xsl:text>
+ </xsl:for-each>
+ <xsl:value-of select="tp:license"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="tp:docstring"/>
+ <xsl:text> </xsl:text>
+ <xsl:text> */ </xsl:text>
+ <xsl:text> </xsl:text>
+ <xsl:text>#ifndef _ACCESSIBILITY_H_ </xsl:text>
+ <xsl:text>#define _ACCESSIBILITY_H_ </xsl:text>
+ <xsl:text>#ifdef __cplusplus </xsl:text>
+ <xsl:text>extern "C" { </xsl:text>
+ <xsl:text>#endif </xsl:text>
+ <xsl:text> </xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text> </xsl:text>
+ <xsl:text>#ifdef __cplusplus </xsl:text>
+ <xsl:text>} </xsl:text>
+ <xsl:text>#endif </xsl:text>
+ <xsl:text>#endif </xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>
+
+<!-- vim:set sw=2 sts=2 et noai noci: -->
diff --git a/tools/identity.xsl b/tools/identity.xsl
new file mode 100644
index 0000000..6630f84
--- /dev/null
+++ b/tools/identity.xsl
@@ -0,0 +1,7 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>
diff --git a/tools/spec-to-introspect.xsl b/tools/spec-to-introspect.xsl
new file mode 100644
index 0000000..ccd06aa
--- /dev/null
+++ b/tools/spec-to-introspect.xsl
@@ -0,0 +1,53 @@
+<!-- Remove Telepathy extensions from a D-Bus interface, trying to leave only
+DTD-compliant introspection XML. The output still needs to be subjected to the
+following sed filter:
+sed -e 's xmlns:tp="http://telepathy\.freedesktop\.org/wiki/DbusSpec.extensions-v0"@@g'
+
+The master copy of this stylesheet is in the Telepathy spec repository -
+please make any changes there.
+
+Copyright (C) 2006, 2007 Collabora Limited
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+-->
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"
+ exclude-result-prefixes="tp">
+
+ <xsl:template match="node">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="*">
+ <xsl:copy>
+ <xsl:for-each select="@*">
+ <xsl:if test="not(starts-with(name(), 'tp:'))">
+ <xsl:copy/>
+ </xsl:if>
+ </xsl:for-each>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="tp:*"/>
+ <xsl:template match="text()"/>
+
+ <xsl:output method="xml" indent="yes" encoding="UTF-8"
+ omit-xml-declaration="yes"/>
+
+</xsl:stylesheet>
+
+<!-- vim:set sw=2 sts=2 et: -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]