[atkmm] Remove deprecated API.



commit f4b09989e0ee2106354153668b9db4b02fc913fb
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Nov 11 10:42:01 2016 +0100

    Remove deprecated API.

 atk/src/component.hg |   16 +++++++---------
 atk/src/document.hg  |    4 ++--
 atk/src/table.hg     |    6 +++---
 atk/src/text.hg      |   19 ++++++-------------
 atk/src/value.hg     |   10 +++++-----
 5 files changed, 23 insertions(+), 32 deletions(-)
---
diff --git a/atk/src/component.hg b/atk/src/component.hg
index 1ff1642..bfcb702 100644
--- a/atk/src/component.hg
+++ b/atk/src/component.hg
@@ -57,16 +57,16 @@ class Component : public Glib::Interface
   _CLASS_INTERFACE(Component, AtkComponent, ATK_COMPONENT, AtkComponentIface)
   
 public:
-  _WRAP_METHOD(guint add_focus_handler(AtkFocusHandler handler), atk_component_add_focus_handler, deprecated 
"If you need to track when an object gains or lose the focus, use Atk::Object::signal_state_change() and 
check for focused notification instead.")
+  _IGNORE(atk_component_add_focus_handler)
   _WRAP_METHOD(bool contains(int x, int y, CoordType coord_type) const, atk_component_contains)
   _WRAP_METHOD(Glib::RefPtr<Atk::Object> get_accessible_at_point(int x, int y, CoordType coord_type), 
atk_component_ref_accessible_at_point)
   _WRAP_METHOD(void get_extents(int& x, int& y, int& width, int& height, CoordType coord_type) const, 
atk_component_get_extents)
-  _WRAP_METHOD(void get_position(int& x, int& y, CoordType coord_type) const, atk_component_get_position, 
deprecated "Use get_extents() instead.")
-  _WRAP_METHOD(void get_size(int& width, int& height) const, atk_component_get_size, deprecated "Use 
get_extents() instead.")
+  _IGNORE(atk_component_get_position)
+  _IGNORE(atk_component_get_size)
   _WRAP_METHOD(Layer get_layer() const, atk_component_get_layer)
   _WRAP_METHOD(int get_mdi_zorder() const, atk_component_get_mdi_zorder)
   _WRAP_METHOD(bool grab_focus(), atk_component_grab_focus)
-  _WRAP_METHOD(void remove_focus_handler(guint handler_id), atk_component_remove_focus_handler, deprecated 
"If you need to track when an object gains or lose the focus, use Atk::Object::signal_state_change() and 
check for focused notification instead.")
+  _IGNORE(atk_component_remove_focus_handler)
   _WRAP_METHOD(bool set_extents(int x, int y, int width, int height, CoordType coord_type), 
atk_component_set_extents)
   _WRAP_METHOD(bool set_position(int x, int y, CoordType coord_type), atk_component_set_position)
   _WRAP_METHOD(bool set_size(int width, int height), atk_component_set_size)
@@ -80,17 +80,15 @@ protected:
   _WRAP_VFUNC(void get_extents(int& x, int& y, int& width, int& height, CoordType coord_type) const, 
get_extents)
 
   //deprecated:
-  _WRAP_VFUNC(void get_position(int& x, int& y, CoordType coord_type) const, get_position)
-
-  //deprecated:
-  _WRAP_VFUNC(void get_size(int& width, int& height) const, get_size)
+  //_IGNORE_VFUNC(get_position)
+  //_IGNORE_VFUNC(get_size)
 
   _WRAP_VFUNC(Layer get_layer() const, get_layer)
   _WRAP_VFUNC(int get_mdi_zorder() const, get_mdi_zorder)
   _WRAP_VFUNC(bool grab_focus(), grab_focus)
 
   //deprecated:
-  _WRAP_VFUNC(void remove_focus_handler(guint handler_id), remove_focus_handler)
+  //_IGNORE_VFUNC(remove_focus_handler)
 
   _WRAP_VFUNC(bool set_extents(int x, int y, int width, int height, CoordType coord_type), set_extents)
   _WRAP_VFUNC(bool set_position(int x, int y, CoordType coord_type), set_position)
diff --git a/atk/src/document.hg b/atk/src/document.hg
index 82d5931..7d1e4a1 100644
--- a/atk/src/document.hg
+++ b/atk/src/document.hg
@@ -45,8 +45,8 @@ class Document : public Glib::Interface
   _CLASS_INTERFACE(Document, AtkDocument, ATK_DOCUMENT, AtkDocumentIface)
 public:
 
-  _WRAP_METHOD(Glib::ustring get_document_type() const, atk_document_get_document_type, deprecated "Please 
use get_attribute() to ask for the document type if it applies.")
-  _WRAP_METHOD(gpointer get_document(), atk_document_get_document, deprecated "Document is already a 
representation of the document. Use it directly, or one of its children, as an instance of the DOM.")
+  _IGNORE(atk_document_get_document_type)
+  _IGNORE(atk_document_get_document)
 
   _IGNORE(atk_document_get_locale)
 
diff --git a/atk/src/table.hg b/atk/src/table.hg
index 9e8371e..a3af06b 100644
--- a/atk/src/table.hg
+++ b/atk/src/table.hg
@@ -58,10 +58,10 @@ public:
   _WRAP_METHOD(Glib::RefPtr<Atk::Object> get_at(int row, int column), atk_table_ref_at)
   _WRAP_METHOD(Glib::RefPtr<const Atk::Object> get_at(int row, int column) const, atk_table_ref_at)
 
-  _WRAP_METHOD(int get_index_at(int row, int column) const, atk_table_get_index_at, deprecated "Use get_at() 
instead.")
+  _IGNORE(atk_table_get_index_at)
 
-  _WRAP_METHOD(int get_column_at_index(int index) const, atk_table_get_column_at_index, deprecated "This 
should not be used in newly-written code.")
-  _WRAP_METHOD(int get_row_at_index(int index) const, atk_table_get_row_at_index, deprecated "This should 
not be used in newly-written code.")
+  _IGNORE(atk_table_get_column_at_index)
+  _IGNORE(atk_table_get_row_at_index)
   _WRAP_METHOD(int get_n_columns() const, atk_table_get_n_columns)
   _WRAP_METHOD(int get_n_rows() const, atk_table_get_n_rows)
   _WRAP_METHOD(int get_column_extent_at(int row, int column) const, atk_table_get_column_extent_at)
diff --git a/atk/src/text.hg b/atk/src/text.hg
index 28730f1..70b4727 100644
--- a/atk/src/text.hg
+++ b/atk/src/text.hg
@@ -114,7 +114,6 @@ public:
 namespace Atk
 {
 
-_WRAP_ENUM(TextBoundary, AtkTextBoundary)
 _WRAP_ENUM(TextClipType, AtkTextClipType)
 _WRAP_ENUM(TextGranularity, AtkTextGranularity)
 
@@ -138,9 +137,9 @@ class Text : public Glib::Interface
 public:
   _WRAP_METHOD(Glib::ustring get_text(int start_offset, int end_offset) const, atk_text_get_text)
   _WRAP_METHOD(gunichar get_character_at_offset(int offset) const, atk_text_get_character_at_offset)
-  _WRAP_METHOD(Glib::ustring get_text_after_offset(int offset, TextBoundary boundary_type, int& 
start_offset, int& end_offset) const, atk_text_get_text_after_offset, deprecated "Use get_string_at_offset() 
instead.")
-  _WRAP_METHOD(Glib::ustring get_text_at_offset(int offset, TextBoundary boundary_type, int& start_offset, 
int& end_offset) const, atk_text_get_text_at_offset, deprecated "Use get_string_at_offset() instead.")
-  _WRAP_METHOD(Glib::ustring get_text_before_offset(int offset, TextBoundary boundary_type, int& 
start_offset, int& end_offset) const, atk_text_get_text_before_offset, deprecated "Use get_string_at_offset() 
instead.")
+  _IGNORE(atk_text_get_text_after_offset)
+  _IGNORE(atk_text_get_text_at_offset)
+  _IGNORE(atk_text_get_text_before_offset)
 
   _WRAP_METHOD(Glib::ustring get_string_at_offset(int offset, TextGranularity granularity, int& 
start_offset, int& end_offset), atk_text_get_string_at_offset)
 
@@ -177,15 +176,9 @@ protected:
   _WRAP_VFUNC(Glib::ustring get_text(int start_offset, int end_offset) const, get_text)
   _WRAP_VFUNC(gunichar get_character_at_offset(int offset) const, get_character_at_offset)
 
-  /** @deprecated This virtual function is deprecated and it should not be overridden.
-   */
-  _WRAP_VFUNC(Glib::ustring get_text_after_offset(int offset, TextBoundary boundary_type, int& start_offset, 
int& end_offset) const, get_text_after_offset)
-
-  _WRAP_VFUNC(Glib::ustring get_text_at_offset(int offset, TextBoundary boundary_type, int& start_offset, 
int& end_offset) const, get_text_at_offset)
-
-  /** @deprecated This virtual function is deprecated and it should not be overridden.
-   */
-  _WRAP_VFUNC(Glib::ustring get_text_before_offset(int offset, TextBoundary boundary_type, int& 
start_offset, int& end_offset) const, get_text_before_offset)
+  //_IGNORE_VFUNC(get_text_after_offset)
+  //_IGNORE_VFUNC(get_text_at_offset)
+  //_IGNORE_VFUNC(get_text_before_offset)
 
   _WRAP_VFUNC(int get_caret_offset() const, get_caret_offset)
   _WRAP_VFUNC(void get_character_extents(int offset, int& x, int& y, int& width, int& height, CoordType 
coords) const, get_character_extents)
diff --git a/atk/src/value.hg b/atk/src/value.hg
index a354b89..c0f8d0c 100644
--- a/atk/src/value.hg
+++ b/atk/src/value.hg
@@ -45,10 +45,10 @@ class Value : public Glib::Interface
   _CLASS_INTERFACE(Value, AtkValue, ATK_VALUE, AtkValueIface)
 
 public:
-  _WRAP_METHOD(void get_current_value(Glib::ValueBase& value) const, atk_value_get_current_value, deprecated 
"Use get_value_and_text() instead.")
-  _WRAP_METHOD(void get_maximum_value(Glib::ValueBase& value) const, atk_value_get_maximum_value, deprecated 
"Use get_range() instead.")
-  _WRAP_METHOD(void get_minimum_value(Glib::ValueBase& value) const, atk_value_get_minimum_value, deprecated 
"Use get_range() instead.")
-  _WRAP_METHOD(bool set_current_value(const Glib::ValueBase& value), atk_value_set_current_value, deprecated 
"Use set_value() instead.")
+  _IGNORE(atk_value_get_current_value)
+  _IGNORE(atk_value_get_maximum_value)
+  _IGNORE(atk_value_get_minimum_value)
+  _IGNORE(atk_value_set_current_value)
 
   /** Gets the current value and the human readable text alternative.
    *
@@ -72,7 +72,7 @@ protected:
   _WRAP_VFUNC(void get_current_value(Glib::ValueBase& value) const, get_current_value)
   _WRAP_VFUNC(void get_maximum_value(Glib::ValueBase& value) const, get_maximum_value)
   _WRAP_VFUNC(void get_minimum_value(Glib::ValueBase& value) const, get_minimum_value)
-  _WRAP_VFUNC(bool set_current_value(const Glib::ValueBase& value), set_current_value)
+  //_IGNORE_VFUNC(bool set_current_value(const Glib::ValueBase& value), set_current_value)
 };
 
 } // namespace Atk


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