public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-accessibility/at-spi2-atk/files: at-spi2-atk-2.2.1-socket_ref_state_set-NULL.patch
@ 2011-11-05  4:51 Alexandre Rostovtsev (tetromino)
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Rostovtsev (tetromino) @ 2011-11-05  4:51 UTC (permalink / raw
  To: gentoo-commits

tetromino    11/11/05 04:51:01

  Added:                at-spi2-atk-2.2.1-socket_ref_state_set-NULL.patch
  Log:
  Bump to 2.2.1 from the gnome overlay. Notable changes: updates for atk-2.2 API, stability improvements.
  
  (Portage version: 2.2.0_alpha72/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  app-accessibility/at-spi2-atk/files/at-spi2-atk-2.2.1-socket_ref_state_set-NULL.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/at-spi2-atk/files/at-spi2-atk-2.2.1-socket_ref_state_set-NULL.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-accessibility/at-spi2-atk/files/at-spi2-atk-2.2.1-socket_ref_state_set-NULL.patch?rev=1.1&content-type=text/plain

Index: at-spi2-atk-2.2.1-socket_ref_state_set-NULL.patch
===================================================================
From 18d98d35c452678efc2bf09f38fb2d0594641613 Mon Sep 17 00:00:00 2001
From: Mario Sanchez Prada <msanchez@igalia.com>
Date: Fri, 28 Oct 2011 20:30:42 +0200
Subject: [PATCH] Socket's implementation of ref_state_set to return empty
 sets instead of NULL

Calls to atk_object_ref_state_set() are expected to return a valid
state set always, so it would be better if this implementation of
socket's ref_state_set() returned empty sets instead of just NULL, to
avoid calling to atk_state_set_*() functions over invalid instances of
AtkStateSet (e.g. add_pending_items() in accessible-cache.c).

https://bugs.freedesktop.org/show_bug.cgi?id=42350
---
 atk-adaptor/bridge.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
index d049731..a1ee202 100644
--- a/atk-adaptor/bridge.c
+++ b/atk-adaptor/bridge.c
@@ -334,17 +334,19 @@ socket_ref_state_set (AtkObject *accessible)
   DBusMessageIter iter, iter_array;
   AtkStateSet *set;
 
+  set = atk_state_set_new ();
+
   if (!socket->embedded_plug_id)
-    return NULL;
+    return set;
 
   child_name = g_strdup (socket->embedded_plug_id);
   if (!child_name)
-    return NULL;
+    return set;
   child_path = g_utf8_strchr (child_name + 1, -1, ':');
   if (!child_path)
     {
       g_free (child_name);
-      return NULL;
+      return set;
     }
   *(child_path++) = '\0';
   message = dbus_message_new_method_call (child_name, child_path, ATSPI_DBUS_INTERFACE_ACCESSIBLE, "GetState");
@@ -352,15 +354,13 @@ socket_ref_state_set (AtkObject *accessible)
   reply = dbus_connection_send_with_reply_and_block (spi_global_app_data->bus, message, 1, NULL);
   dbus_message_unref (message);
   if (reply == NULL)
-    return NULL;
+    return set;
   if (strcmp (dbus_message_get_signature (reply), "au") != 0)
     {
       dbus_message_unref (reply);
-      return NULL;
+      return set;
     }
-  set = atk_state_set_new ();
-  if (!set)
-    return  NULL;
+
   dbus_message_iter_init (reply, &iter);
   dbus_message_iter_recurse (&iter, &iter_array);
   do
-- 
1.7.7.2







^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in app-accessibility/at-spi2-atk/files: at-spi2-atk-2.2.1-socket_ref_state_set-NULL.patch
@ 2012-05-14  0:10 Alexandre Rostovtsev (tetromino)
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Rostovtsev (tetromino) @ 2012-05-14  0:10 UTC (permalink / raw
  To: gentoo-commits

tetromino    12/05/14 00:10:06

  Removed:              at-spi2-atk-2.2.1-socket_ref_state_set-NULL.patch
  Log:
  Version bump for gnome-3.4. Drop old.
  
  (Portage version: 2.2.0_alpha104/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-14  0:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-05  4:51 [gentoo-commits] gentoo-x86 commit in app-accessibility/at-spi2-atk/files: at-spi2-atk-2.2.1-socket_ref_state_set-NULL.patch Alexandre Rostovtsev (tetromino)
  -- strict thread matches above, loose matches on Subject: below --
2012-05-14  0:10 Alexandre Rostovtsev (tetromino)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox