aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/e-text/gal-a11y-e-text.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-06-11 01:01:14 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-06-11 01:01:14 +0800
commit8db565271c4bca4f480eb79193c0a5ceb322b778 (patch)
tree081765966b617c91bfd92e748d1125c64c433a57 /a11y/e-text/gal-a11y-e-text.c
parent4b829c4fffe52585ce7cb98b9916d2dedd8f39cd (diff)
downloadgsoc2013-evolution-8db565271c4bca4f480eb79193c0a5ceb322b778.tar
gsoc2013-evolution-8db565271c4bca4f480eb79193c0a5ceb322b778.tar.gz
gsoc2013-evolution-8db565271c4bca4f480eb79193c0a5ceb322b778.tar.bz2
gsoc2013-evolution-8db565271c4bca4f480eb79193c0a5ceb322b778.tar.lz
gsoc2013-evolution-8db565271c4bca4f480eb79193c0a5ceb322b778.tar.xz
gsoc2013-evolution-8db565271c4bca4f480eb79193c0a5ceb322b778.tar.zst
gsoc2013-evolution-8db565271c4bca4f480eb79193c0a5ceb322b778.zip
added cast
2004-06-10 Radek Doulik <rodo@ximian.com> * gal/a11y/e-table/gal-a11y-e-table-click-to-add.c (idle_do_action): added cast * gal/a11y/e-table/gal-a11y-e-cell-tree.c (gal_a11y_e_cell_tree_new): added cast * gal/a11y/e-table/gal-a11y-e-cell.c: added #include <gtk/gtkwindow.h> * gal/e-text/e-text.c (_get_position): removed unused variable * gal/e-text/e-completion.c: #if 0'ed e_completion_sort * tests/test-text.c (create_entry): removed unused variables added #include "gal/widgets/e-canvas-utils.h" added #include "gal/e-text/e-text-model.h" (create_text): removed unused variables (create_ro_text): ditto * tests/test-table-1.c (create_table): added cast * tests/test-completion.c (main): added cast * gal/a11y/e-text/gal-a11y-e-text.c (et_get_text): return NULL if check fails added #include <string.h> for strlen (et_get_text_after_offset): fixed typo defalut --> default (et_get_text_at_offset): ditto (et_get_character_extents): removed unused variables (et_set_selection): ditto (_et_command_cb): added default: label to quiet compiler * gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.c (gal_a11y_e_table_click_to_add_factory_create_accessible): return NULL if check fails * gal/a11y/e-table/gal-a11y-e-table-click-to-add.c (idle_do_action): fixed wrong cast (idle_do_action): removed unused variables (etcta_ref_child): return NULL if check fails (gal_a11y_e_table_click_to_add_new): ditto (gal_a11y_e_table_click_to_add_new): removed unused variable * gal/a11y/e-table/gal-a11y-e-table-item-factory.c (gal_a11y_e_table_item_factory_create_accessible): return NULL if fails (gal_a11y_e_table_item_factory_create_accessible): added cast (gal_a11y_e_table_item_factory_create_accessible): removed unused variable * gal/a11y/e-table/gal-a11y-e-table-item.c (eti_dispose): removed unused variable (eti_get_parent): ditto (eti_get_n_children): ditto (eti_ref_child): ditto (eti_get_index_in_parent): ditto (eti_ref_accessible_at_point): return value (NULL) (cell_destroyed): removed unused variable (cell_destroyed): ditto (table_add_row_selection): ditto added #inclued <string.h> for memset, memmove (eti_rows_inserted): removed unused variable (eti_rows_deleted): ditto (eti_header_structure_changed): ditto * gal/a11y/e-table/gal-a11y-e-cell-popup.c (gal_a11y_e_cell_popup_class_init): removed unused variable added #include "gal-a11y-e-cell-registry.h" (popup_cell_action): removed unused variable * gal/a11y/e-table/gal-a11y-e-cell-toggle.c (toggle_cell_action): removed unused variable * gal/a11y/e-table/gal-a11y-e-cell-tree.c: added #include "gal-a11y-e-cell-registry.h" (gal_a11y_e_cell_tree_new): add cast (gal_a11y_e_cell_tree_new): removed unused variable * gal/a11y/e-table/gal-a11y-e-cell-text.c: added #include <string.h> (ect_remove_selection): removed unused variable (ect_copy_text): added cast (ect_delete_text): ditto (ect_paste_text): ditto (ect_init): ditto * gal/a11y/e-table/gal-a11y-e-cell.c (eti_grab_focus): added cast (eti_grab_focus): ditto (eti_grab_focus): return TRUE (grab was successful) added #include <atk/atkstateset.h> * gal/a11y/e-table/gal-a11y-e-tree.c: added #include "gal-a11y-e-table-item.h" (gal_a11y_e_tree_new): removed unused variable * gal/e-text/e-text.c (_do_tooltip): removed unused variable (e_text_event): added cast (primary_clear_cb): removed unused variable (_get_position): ditto (_get_position): ditto #if 0'ed unused prototypes * gal/e-text/e-text-model.c (e_text_model_real_insert_length): removed unused variables * gal/e-text/e-completion.c (e_completion_sort): #if'0 ed, as it's not used anywhere * gal/widgets/e-reflow.c (items_inserted): remove unused variables * gal/widgets/e-categories.c (e_categories_get_property): remove unused variable * gal/widgets/e-categories-master-list-dialog.c (dialog_destroyed): added cast * gal/widgets/e-categories-master-list-combo.c (ecmlc_ecml_changed): remove unused variable * gal/widgets/color-palette.c: include string.h for memset prototype svn path=/trunk/; revision=26289
Diffstat (limited to 'a11y/e-text/gal-a11y-e-text.c')
-rw-r--r--a11y/e-text/gal-a11y-e-text.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/a11y/e-text/gal-a11y-e-text.c b/a11y/e-text/gal-a11y-e-text.c
index be7835e17d..db066edd6e 100644
--- a/a11y/e-text/gal-a11y-e-text.c
+++ b/a11y/e-text/gal-a11y-e-text.c
@@ -7,6 +7,7 @@
*/
#include <config.h>
+#include <string.h>
#include "gal-a11y-e-text.h"
#include "gal-a11y-util.h"
#include <atk/atkobject.h>
@@ -113,7 +114,7 @@ et_get_text (AtkText *text,
gint start, end, real_start, real_end, len;
const char *full_text = et_get_full_text (text);
if (full_text == NULL)
- return;
+ return NULL;
len = g_utf8_strlen (full_text, -1);
start = MIN (MAX (0, start_offset), len);
@@ -333,7 +334,7 @@ et_get_text_after_offset (AtkText *text,
start = find_line_end (full_text, offset + 1, 1);
end = find_line_end (full_text, start + 1, 1);
break;
- defalut:
+ default:
return NULL;
}
@@ -386,7 +387,7 @@ et_get_text_at_offset (AtkText *text,
start = find_line_end (full_text, offset, -1);
end = find_line_end (full_text, offset + 1, 1);
break;
- defalut:
+ default:
return NULL;
}
@@ -519,8 +520,6 @@ et_get_character_extents (AtkText *text,
gint x_widget, y_widget, x_window, y_window;
GdkWindow *window;
GtkWidget *widget;
- int index;
- int trailing;
PangoRectangle pango_pos;
g_return_if_fail (ATK_IS_GOBJECT_ACCESSIBLE(text));
@@ -769,7 +768,6 @@ et_set_selection (AtkText *text,
{
GObject *obj;
EText *etext;
- int offset;
g_return_val_if_fail (ATK_IS_GOBJECT_ACCESSIBLE (text), FALSE);
obj = atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (text));
@@ -1009,6 +1007,8 @@ _et_command_cb (ETextEventProcessor *tep,
case E_TEP_SELECT:
g_signal_emit_by_name (text, "text-selection-changed");
break;
+ default:
+ break;
}
}