aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-02-28 11:36:29 +0800
committerChris Lahey <clahey@src.gnome.org>2001-02-28 11:36:29 +0800
commit6a8d4951dc284e0f3d3e1645d258d3a9968025c8 (patch)
treea557d39353eb8ca54993eea14552a0a18a48bc11 /widgets/table/e-table.c
parent5a2e01a7af2f63f01ce96c6f82fd66bdbb7f9cea (diff)
downloadgsoc2013-evolution-6a8d4951dc284e0f3d3e1645d258d3a9968025c8.tar
gsoc2013-evolution-6a8d4951dc284e0f3d3e1645d258d3a9968025c8.tar.gz
gsoc2013-evolution-6a8d4951dc284e0f3d3e1645d258d3a9968025c8.tar.bz2
gsoc2013-evolution-6a8d4951dc284e0f3d3e1645d258d3a9968025c8.tar.lz
gsoc2013-evolution-6a8d4951dc284e0f3d3e1645d258d3a9968025c8.tar.xz
gsoc2013-evolution-6a8d4951dc284e0f3d3e1645d258d3a9968025c8.tar.zst
gsoc2013-evolution-6a8d4951dc284e0f3d3e1645d258d3a9968025c8.zip
Changed e_table_selection_model_clear to e_selection_model_clear.
2001-02-27 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-completion-view.c: Changed e_table_selection_model_clear to e_selection_model_clear. * tests/test-tree-3.c: Changed E_TABLE_CURSOR_LINE to E_CURSOR_LINE. From gal/e-table/ChangeLog: 2001-02-27 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c, e-table-group-container.c, e-table-group-container.h, e-table-group-leaf.c, e-table-group-leaf.h, e-table-item.c, e-table-item.h, e-table-specification.c, e-table-specification.h, e-table.c, e-table.h: Changed a lot of the ETableSelectionModels to ESelectionModels, a lot of the ETableSorters to ESorters, all the ETableCursorModes to ECursorModes, and all of the ETableForeachFuncs into EForeachFuncs. * e-table-defines.h: Moved ETableForeachFunc and ETableCursorMode to e-selection-model.h. * e-table-selection-model.c, e-table-selection-model.h: Made this a subclass of ESelectionModel which simple connects to an ETableModel. * e-table-sorter.c, e-table-sorter.h: Made this a subclass of ESorter so that implements the same semantics it used to. svn path=/trunk/; revision=8422
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index ec58ad5186..9a2073f3e6 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -202,7 +202,7 @@ e_table_init (GtkObject *object)
e_table->draw_grid = 1;
e_table->draw_focus = 1;
- e_table->cursor_mode = E_TABLE_CURSOR_SIMPLE;
+ e_table->cursor_mode = E_CURSOR_SIMPLE;
e_table->length_threshold = 200;
e_table->need_rebuild = 0;
@@ -382,7 +382,7 @@ static void
click_to_add_cursor_change (ETableClickToAdd *etcta, int row, int col, ETable *et)
{
if (et->cursor_loc == E_TABLE_CURSOR_LOC_TABLE) {
- e_table_selection_model_clear(et->selection);
+ e_selection_model_clear(E_SELECTION_MODEL (et->selection));
}
et->cursor_loc = E_TABLE_CURSOR_LOC_ETCTA;
}
@@ -1382,15 +1382,15 @@ e_table_get_cursor_row (ETable *e_table)
void
e_table_selected_row_foreach (ETable *e_table,
- ETableForeachFunc callback,
+ EForeachFunc callback,
gpointer closure)
{
g_return_if_fail(e_table != NULL);
g_return_if_fail(E_IS_TABLE(e_table));
- e_table_selection_model_foreach(e_table->selection,
- callback,
- closure);
+ e_selection_model_foreach(E_SELECTION_MODEL (e_table->selection),
+ callback,
+ closure);
}
gint
@@ -1399,7 +1399,7 @@ e_table_selected_count (ETable *e_table)
g_return_val_if_fail(e_table != NULL, -1);
g_return_val_if_fail(E_IS_TABLE(e_table), -1);
- return e_table_selection_model_selected_count(e_table->selection);
+ return e_selection_model_selected_count(E_SELECTION_MODEL (e_table->selection));
}
void
@@ -1408,7 +1408,7 @@ e_table_select_all (ETable *table)
g_return_if_fail (table != NULL);
g_return_if_fail (E_IS_TABLE (table));
- e_table_selection_model_select_all (table->selection);
+ e_selection_model_select_all (E_SELECTION_MODEL (table->selection));
}
void
@@ -1417,7 +1417,7 @@ e_table_invert_selection (ETable *table)
g_return_if_fail (table != NULL);
g_return_if_fail (E_IS_TABLE (table));
- e_table_selection_model_invert_selection (table->selection);
+ e_selection_model_invert_selection (E_SELECTION_MODEL (table->selection));
}
@@ -1491,10 +1491,10 @@ e_table_get_next_row (ETable *e_table,
if (e_table->sorter) {
int i;
- i = e_table_sorter_model_to_sorted(e_table->sorter, model_row);
+ i = e_sorter_model_to_sorted(E_SORTER (e_table->sorter), model_row);
i++;
if (i < e_table_model_row_count(e_table->model)) {
- return e_table_sorter_sorted_to_model(e_table->sorter, i);
+ return e_sorter_sorted_to_model(E_SORTER (e_table->sorter), i);
} else
return -1;
} else
@@ -1513,10 +1513,10 @@ e_table_get_prev_row (ETable *e_table,
if (e_table->sorter) {
int i;
- i = e_table_sorter_model_to_sorted(e_table->sorter, model_row);
+ i = e_sorter_model_to_sorted(E_SORTER (e_table->sorter), model_row);
i--;
if (i >= 0)
- return e_table_sorter_sorted_to_model(e_table->sorter, i);
+ return e_sorter_sorted_to_model(E_SORTER (e_table->sorter), i);
else
return -1;
} else
@@ -1531,7 +1531,7 @@ e_table_model_to_view_row (ETable *e_table,
g_return_val_if_fail(E_IS_TABLE(e_table), -1);
if (e_table->sorter)
- return e_table_sorter_model_to_sorted(e_table->sorter, model_row);
+ return e_sorter_model_to_sorted(E_SORTER (e_table->sorter), model_row);
else
return model_row;
}
@@ -1544,7 +1544,7 @@ e_table_view_to_model_row (ETable *e_table,
g_return_val_if_fail(E_IS_TABLE(e_table), -1);
if (e_table->sorter)
- return e_table_sorter_sorted_to_model(e_table->sorter, view_row);
+ return e_sorter_sorted_to_model (E_SORTER (e_table->sorter), view_row);
else
return view_row;
}
@@ -1727,7 +1727,7 @@ e_table_drag_source_set (ETable *table,
gtk_widget_add_events (canvas,
gtk_widget_get_events (canvas) |
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
- GDK_BUTTON_MOTION_MASK);
+ GDK_BUTTON_MOTION_MASK | GDK_STRUCTURE_MASK);
if (site) {
if (site->target_list)