Hello community, here is the log from the commit of package at-spi2-atk for openSUSE:Factory checked in at 2013-08-30 17:15:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/at-spi2-atk (Old) and /work/SRC/openSUSE:Factory/.at-spi2-atk.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "at-spi2-atk" Changes: -------- --- /work/SRC/openSUSE:Factory/at-spi2-atk/at-spi2-atk.changes 2013-08-16 12:27:56.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.at-spi2-atk.new/at-spi2-atk.changes 2013-08-30 17:15:11.000000000 +0200 @@ -1,0 +2,6 @@ +Tue Aug 20 07:04:20 UTC 2013 - dims...@opensuse.org + +- Update to version 2.9.90: + + Implement GetStringAtOffset (bgo#7055810). + +------------------------------------------------------------------- Old: ---- at-spi2-atk-2.9.5.tar.xz New: ---- at-spi2-atk-2.9.90.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ at-spi2-atk.spec ++++++ --- /var/tmp/diff_new_pack.IPxhbZ/_old 2013-08-30 17:15:12.000000000 +0200 +++ /var/tmp/diff_new_pack.IPxhbZ/_new 2013-08-30 17:15:12.000000000 +0200 @@ -17,7 +17,7 @@ Name: at-spi2-atk -Version: 2.9.5 +Version: 2.9.90 Release: 0 Summary: Assistive Technology Service Provider Interface - GTK+ module License: LGPL-2.0+ @@ -27,7 +27,7 @@ Source98: baselibs.conf Source99: %{name}-rpmlintrc BuildRequires: fdupes -BuildRequires: pkgconfig(atk) >= 2.7.5 +BuildRequires: pkgconfig(atk) >= 2.9.4 BuildRequires: pkgconfig(atspi-2) >= 2.9.4 BuildRequires: pkgconfig(dbus-1) >= 1.0 BuildRequires: pkgconfig(glib-2.0) >= 2.32.0 ++++++ at-spi2-atk-2.9.5.tar.xz -> at-spi2-atk-2.9.90.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/at-spi2-atk-2.9.5/NEWS new/at-spi2-atk-2.9.90/NEWS --- old/at-spi2-atk-2.9.5/NEWS 2013-07-29 23:40:36.000000000 +0200 +++ new/at-spi2-atk-2.9.90/NEWS 2013-08-19 23:45:31.000000000 +0200 @@ -1,3 +1,7 @@ +What's new in at-spi2-atk 2.9.90: + +* Implement GetStringAtOffset (BGO#705581). + What's new in at-spi2-atk 2.9.5: * Fix another crash when we're initialized and shut down repeatedly. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/at-spi2-atk-2.9.5/atk-adaptor/adaptors/text-adaptor.c new/at-spi2-atk-2.9.90/atk-adaptor/adaptors/text-adaptor.c --- old/at-spi2-atk-2.9.5/atk-adaptor/adaptors/text-adaptor.c 2013-05-14 19:50:48.000000000 +0200 +++ new/at-spi2-atk-2.9.90/atk-adaptor/adaptors/text-adaptor.c 2013-08-19 18:26:45.000000000 +0200 @@ -254,6 +254,100 @@ return reply; } +static gchar * +get_text_for_legacy_implementations(AtkText *text, + gint offset, + AtkTextGranularity granularity, + gint *start_offset, + gint *end_offset) +{ + gchar *txt = 0; + AtkTextBoundary boundary = 0; + switch (granularity) { + case ATK_TEXT_GRANULARITY_CHAR: + boundary = ATK_TEXT_BOUNDARY_CHAR; + break; + + case ATK_TEXT_GRANULARITY_WORD: + boundary = ATK_TEXT_BOUNDARY_WORD_START; + break; + + case ATK_TEXT_GRANULARITY_SENTENCE: + boundary = ATK_TEXT_BOUNDARY_SENTENCE_START; + break; + + case ATK_TEXT_GRANULARITY_LINE: + boundary = ATK_TEXT_BOUNDARY_LINE_START; + break; + + case ATK_TEXT_GRANULARITY_PARAGRAPH: + /* This is not implemented in previous versions of ATK */ + txt = g_strdup(""); + break; + + default: + g_assert_not_reached(); + } + + if (!txt) + { + txt = + atk_text_get_text_at_offset (text, offset, boundary, + start_offset, end_offset); + } + + return txt; +} + +static DBusMessage * +impl_GetStringAtOffset (DBusConnection * bus, DBusMessage * message, + void *user_data) +{ + AtkText *text = (AtkText *) user_data; + dbus_int32_t offset; + dbus_uint32_t granularity; + gchar *txt = 0; + dbus_int32_t startOffset, endOffset; + gint intstart_offset = 0, intend_offset = 0; + DBusMessage *reply; + + g_return_val_if_fail (ATK_IS_TEXT (user_data), + droute_not_yet_handled_error (message)); + if (!dbus_message_get_args + (message, NULL, DBUS_TYPE_INT32, &offset, DBUS_TYPE_UINT32, &granularity, + DBUS_TYPE_INVALID)) + { + return droute_invalid_arguments_error (message); + } + + txt = + atk_text_get_string_at_offset (text, offset, (AtkTextGranularity) granularity, + &intstart_offset, &intend_offset); + + /* Accessibility layers implementing an older version of ATK (even if + * a new enough version of libatk is installed) might return NULL due + * not to provide an implementation for get_string_at_offset(), so we + * try with the legacy implementation if that's the case. */ + if (!txt) + txt = get_text_for_legacy_implementations(text, offset, + (AtkTextGranularity) granularity, + &intstart_offset, &intend_offset); + + startOffset = intstart_offset; + endOffset = intend_offset; + txt = validate_allocated_string (txt); + reply = dbus_message_new_method_return (message); + if (reply) + { + dbus_message_append_args (reply, DBUS_TYPE_STRING, &txt, + DBUS_TYPE_INT32, &startOffset, + DBUS_TYPE_INT32, &endOffset, + DBUS_TYPE_INVALID); + } + g_free (txt); + return reply; +} + static DBusMessage * impl_GetAttributeValue (DBusConnection * bus, DBusMessage * message, void *user_data) @@ -757,6 +851,7 @@ {impl_GetTextBeforeOffset, "GetTextBeforeOffset"}, {impl_GetTextAtOffset, "GetTextAtOffset"}, {impl_GetTextAfterOffset, "GetTextAfterOffset"}, + {impl_GetStringAtOffset, "GetStringAtOffset"}, {impl_GetCharacterAtOffset, "GetCharacterAtOffset"}, {impl_GetAttributeValue, "GetAttributeValue"}, {impl_GetAttributes, "GetAttributes"}, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/at-spi2-atk-2.9.5/atk-adaptor/introspection.c new/at-spi2-atk-2.9.90/atk-adaptor/introspection.c --- old/at-spi2-atk-2.9.5/atk-adaptor/introspection.c 2013-04-30 18:34:34.000000000 +0200 +++ new/at-spi2-atk-2.9.90/atk-adaptor/introspection.c 2013-08-19 18:25:06.000000000 +0200 @@ -548,6 +548,14 @@ " <arg direction=\"out\" name=\"endOffset\" type=\"i\" />" " </method>" "" +" <method name=\"GetStringAtOffset\">" +" <arg direction=\"in\" name=\"offset\" type=\"i\" />" +" <arg direction=\"in\" name=\"granularity\" type=\"u\" />" +" <arg direction=\"out\" type=\"s\" />" +" <arg direction=\"out\" name=\"startOffset\" type=\"i\" />" +" <arg direction=\"out\" name=\"endOffset\" type=\"i\" />" +" </method>" +"" " <method name=\"GetCharacterAtOffset\">" " <arg direction=\"in\" name=\"offset\" type=\"i\" />" " <arg direction=\"out\" type=\"i\" />" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/at-spi2-atk-2.9.5/configure new/at-spi2-atk-2.9.90/configure --- old/at-spi2-atk-2.9.5/configure 2013-07-30 00:55:11.000000000 +0200 +++ new/at-spi2-atk-2.9.90/configure 2013-08-19 23:46:54.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for at-spi2-atk 2.9.5. +# Generated by GNU Autoconf 2.69 for at-spi2-atk 2.9.90. # # Report bugs to <accessibility-at...@lists.linux-foundation.org>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='at-spi2-atk' PACKAGE_TARNAME='at-spi2-atk' -PACKAGE_VERSION='2.9.5' -PACKAGE_STRING='at-spi2-atk 2.9.5' +PACKAGE_VERSION='2.9.90' +PACKAGE_STRING='at-spi2-atk 2.9.90' PACKAGE_BUGREPORT='accessibility-at...@lists.linux-foundation.org' PACKAGE_URL='' @@ -1355,7 +1355,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures at-spi2-atk 2.9.5 to adapt to many kinds of systems. +\`configure' configures at-spi2-atk 2.9.90 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1425,7 +1425,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of at-spi2-atk 2.9.5:";; + short | recursive ) echo "Configuration of at-spi2-atk 2.9.90:";; esac cat <<\_ACEOF @@ -1553,7 +1553,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -at-spi2-atk configure 2.9.5 +at-spi2-atk configure 2.9.90 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1831,7 +1831,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by at-spi2-atk $as_me 2.9.5, which was +It was created by at-spi2-atk $as_me 2.9.90, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2675,7 +2675,7 @@ # Define the identity of the package. PACKAGE='at-spi2-atk' - VERSION='2.9.5' + VERSION='2.9.90' cat >>confdefs.h <<_ACEOF @@ -11829,12 +11829,12 @@ pkg_cv_ATK_CFLAGS="$ATK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atk >= 2.7.90\""; } >&5 - ($PKG_CONFIG --exists --print-errors "atk >= 2.7.90") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atk >= 2.9.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "atk >= 2.9.4") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_ATK_CFLAGS=`$PKG_CONFIG --cflags "atk >= 2.7.90" 2>/dev/null` + pkg_cv_ATK_CFLAGS=`$PKG_CONFIG --cflags "atk >= 2.9.4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -11846,12 +11846,12 @@ pkg_cv_ATK_LIBS="$ATK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atk >= 2.7.90\""; } >&5 - ($PKG_CONFIG --exists --print-errors "atk >= 2.7.90") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"atk >= 2.9.4\""; } >&5 + ($PKG_CONFIG --exists --print-errors "atk >= 2.9.4") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_ATK_LIBS=`$PKG_CONFIG --libs "atk >= 2.7.90" 2>/dev/null` + pkg_cv_ATK_LIBS=`$PKG_CONFIG --libs "atk >= 2.9.4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -11872,14 +11872,14 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - ATK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "atk >= 2.7.90" 2>&1` + ATK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "atk >= 2.9.4" 2>&1` else - ATK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "atk >= 2.7.90" 2>&1` + ATK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "atk >= 2.9.4" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$ATK_PKG_ERRORS" >&5 - as_fn_error $? "Package requirements (atk >= 2.7.90) were not met: + as_fn_error $? "Package requirements (atk >= 2.9.4) were not met: $ATK_PKG_ERRORS @@ -12810,7 +12810,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by at-spi2-atk $as_me 2.9.5, which was +This file was extended by at-spi2-atk $as_me 2.9.90, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -12876,7 +12876,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -at-spi2-atk config.status 2.9.5 +at-spi2-atk config.status 2.9.90 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/at-spi2-atk-2.9.5/configure.ac new/at-spi2-atk-2.9.90/configure.ac --- old/at-spi2-atk-2.9.5/configure.ac 2013-07-30 00:55:00.000000000 +0200 +++ new/at-spi2-atk-2.9.90/configure.ac 2013-08-19 23:45:44.000000000 +0200 @@ -1,4 +1,4 @@ -AC_INIT([at-spi2-atk], [2.9.5], [accessibility-at...@lists.linux-foundation.org]) +AC_INIT([at-spi2-atk], [2.9.90], [accessibility-at...@lists.linux-foundation.org]) AC_CONFIG_AUX_DIR(config) AT_SPI_ATK_MAJOR_VERSION=0 @@ -51,7 +51,7 @@ AC_SUBST(GMODULE_LIBS) AC_SUBST(GMODULE_CFLAGS) -PKG_CHECK_MODULES(ATK, [atk >= 2.7.90]) +PKG_CHECK_MODULES(ATK, [atk >= 2.9.4]) AC_SUBST(ATK_LIBS) AC_SUBST(ATK_CFLAGS) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org