diff options
Diffstat (limited to 'x11-toolkits/gal2/files/patch-gal_a11y_e-table_gal-a11y-e-cell-text.c')
-rw-r--r-- | x11-toolkits/gal2/files/patch-gal_a11y_e-table_gal-a11y-e-cell-text.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/x11-toolkits/gal2/files/patch-gal_a11y_e-table_gal-a11y-e-cell-text.c b/x11-toolkits/gal2/files/patch-gal_a11y_e-table_gal-a11y-e-cell-text.c new file mode 100644 index 000000000000..f1ad3a4502de --- /dev/null +++ b/x11-toolkits/gal2/files/patch-gal_a11y_e-table_gal-a11y-e-cell-text.c @@ -0,0 +1,30 @@ +--- gal/a11y/e-table/gal-a11y-e-cell-text.c.orig Wed Feb 9 23:01:26 2005 ++++ gal/a11y/e-table/gal-a11y-e-cell-text.c Wed Feb 9 23:02:02 2005 +@@ -152,11 +152,12 @@ + GalA11yECell *gaec = GAL_A11Y_E_CELL (text); + gunichar ret_val; + gchar *at_offset; ++ gchar *full_text; + + if (!ect_check (text)) + return -1; + +- gchar *full_text = e_cell_text_get_text_by_view (gaec->cell_view, gaec->model_col, gaec->row); ++ full_text = e_cell_text_get_text_by_view (gaec->cell_view, gaec->model_col, gaec->row); + at_offset = g_utf8_offset_to_pointer (full_text, offset); + ret_val = g_utf8_get_char_validated (at_offset, -1); + g_free (full_text); +@@ -236,11 +237,12 @@ + { + GalA11yECell *gaec = GAL_A11Y_E_CELL (text); + gint ret_val; ++ gchar *full_text; + + if (!ect_check (text)) + return -1; + +- gchar *full_text = e_cell_text_get_text_by_view (gaec->cell_view, gaec->model_col, gaec->row); ++ full_text = e_cell_text_get_text_by_view (gaec->cell_view, gaec->model_col, gaec->row); + + ret_val = g_utf8_strlen (full_text, -1); + g_free (full_text); |