Removed get_row_col_at_offset from atktext.[ch]
authorBrian Cameron <bcameron@src.gnome.org>
Fri, 1 Jun 2001 16:57:28 +0000 (16:57 +0000)
committerBrian Cameron <bcameron@src.gnome.org>
Fri, 1 Jun 2001 16:57:28 +0000 (16:57 +0000)
ChangeLog
atk/atktext.c
atk/atktext.h

index 4d2edfd..480235b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,7 +9,8 @@ Fri Jun 01  Brian Cameron <brian.cameron@sun.com>
         * atk/atkeditabletext.[ch], atk/atktext.[ch]
         * docs/atk-overrides.txt, docs/Makefile.am
           Updated the interface for dealing with selected
-          text to handle multiple selected regions.  Added
+          text to handle multiple selected regions.  Removed
+          get_row_col_at_offset from atktext.[ch].  Added
           docs/atk-overrides.txt file.
 
 Thu May 31  Brian Cameron <brian.cameron@sun.com>
index 18bd2d5..e509dd3 100755 (executable)
@@ -279,37 +279,6 @@ atk_text_get_caret_offset (AtkText *text)
 }
 
 /**
- * atk_text_get_row_col_at_offset
- * @text: an #AtkText
- * @offset: position
- * @row: row number
- * @col: column number
- *
- * Given an @offset, the @row and @col arguments are filled appropriately.
- **/
-void
-atk_text_get_row_col_at_offset (AtkText *text,
-                                gint offset,
-                                gint *row,
-                                gint *col)
-{
-  AtkTextIface *iface;
-
-  g_return_if_fail (text != NULL);
-  g_return_if_fail (ATK_IS_TEXT (text));
-
-  iface = ATK_TEXT_GET_IFACE (text);
-
-  if (iface->get_row_col_at_offset)
-    (*(iface->get_row_col_at_offset)) (text, offset, row, col);
-  else
-    {
-      *row = 0;
-      *col = 0;
-    }
-}
-
-/**
  * atk_text_get_range_attributes
  * @text: an #AtkText
  * @start_offset: start position
index ca07507..bc63ce0 100755 (executable)
@@ -83,10 +83,6 @@ struct _AtkTextIface
                                                    gint             offset,
                                                    AtkTextBoundary  boundary_type);
   gint           (* get_caret_offset)             (AtkText          *text);
-  void           (* get_row_col_at_offset)        (AtkText          *text,
-                                                   gint             offset,
-                                                   gint             *row,
-                                                   gint             *col);
   PangoAttrList* (* get_range_attributes)         (AtkText          *text,
                                                    gint             start_offset,
                                                    gint             end_offset);
@@ -145,10 +141,6 @@ gchar*        atk_text_get_text_before_offset             (AtkText          *tex
                                                            gint             offset,
                                                            AtkTextBoundary  boundary_type);
 gint          atk_text_get_caret_offset                   (AtkText          *text);
-void          atk_text_get_row_col_at_offset              (AtkText          *text,
-                                                           gint             offset,
-                                                           gint             *row,
-                                                           gint             *col);
 PangoAttrList* atk_text_get_range_attributes              (AtkText          *text,
                                                            gint             start_offset,
                                                            gint             end_offset);