[gtk+/popovers] a11y: Ignore deprecation warnings for ATK focus tracker



commit 9271fa8bc7e09aaba8ea50297c8f693f3cdf8f83
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jan 28 19:49:22 2014 +0100

    a11y: Ignore deprecation warnings for ATK focus tracker

 gtk/a11y/gtkaccessibility.c |    4 ++++
 gtk/gtkiconview.c           |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/a11y/gtkaccessibility.c b/gtk/a11y/gtkaccessibility.c
index 3c51f26..1238b4f 100644
--- a/gtk/a11y/gtkaccessibility.c
+++ b/gtk/a11y/gtkaccessibility.c
@@ -524,9 +524,11 @@ gail_focus_notify (GtkWidget *widget)
       /*
        * Do not report focus on redundant object
        */
+      G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       if (atk_obj &&
          (atk_object_get_role(atk_obj) != ATK_ROLE_REDUNDANT_OBJECT))
          atk_focus_tracker_notify (atk_obj);
+      G_GNUC_END_IGNORE_DEPRECATIONS;
       if (atk_obj && transient)
         g_object_unref (atk_obj);
       if (subsequent_focus_widget)
@@ -976,8 +978,10 @@ _gtk_accessibility_init (void)
   initialized = TRUE;
   quark_focus_object = g_quark_from_static_string ("gail-focus-object");
 
+  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
   atk_focus_tracker_init (gail_focus_tracker_init);
   focus_tracker_id = atk_add_focus_tracker (gail_focus_tracker);
+  G_GNUC_END_IGNORE_DEPRECATIONS;
 
   _gtk_accessibility_override_atk_util ();
   do_window_event_initialization ();
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c
index 7c19d2e..ccb9fec 100644
--- a/gtk/gtkiconview.c
+++ b/gtk/gtkiconview.c
@@ -3285,7 +3285,9 @@ _gtk_icon_view_set_cursor_item (GtkIconView     *icon_view,
 
   if (item_obj != NULL)
     {
+      G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
       atk_focus_tracker_notify (item_obj);
+      G_GNUC_END_IGNORE_DEPRECATIONS;
       atk_object_notify_state_change (item_obj, ATK_STATE_FOCUSED, TRUE);
       g_object_unref (item_obj); 
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]