aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-cell-toggle.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-25 03:06:54 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-25 03:06:54 +0800
commit695baf618d363f760ec81d109c6e6185e510b1e7 (patch)
tree40d7700b26e6041ac8c8ef7e40cc15fe25ba43c0 /widgets/e-table/e-cell-toggle.c
parent483c3d3ffc0addb346611c0a544f214784e349b1 (diff)
downloadgsoc2013-evolution-695baf618d363f760ec81d109c6e6185e510b1e7.tar.gz
gsoc2013-evolution-695baf618d363f760ec81d109c6e6185e510b1e7.tar.zst
gsoc2013-evolution-695baf618d363f760ec81d109c6e6185e510b1e7.zip
Added infrastructure for setting the justification of columns. Still need
2000-08-24 Christopher James Lahey <clahey@helixcode.com> * e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-cell.c, e-cell.h, e-table-col.c, e-table-col.h, e-table-item.c: Added infrastructure for setting the justification of columns. Still need to change the cells to support it and need to add user interface to change the justification. svn path=/trunk/; revision=5010
Diffstat (limited to 'widgets/e-table/e-cell-toggle.c')
-rw-r--r--widgets/e-table/e-cell-toggle.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/widgets/e-table/e-cell-toggle.c b/widgets/e-table/e-cell-toggle.c
index 1be01348db..f0a05b488a 100644
--- a/widgets/e-table/e-cell-toggle.c
+++ b/widgets/e-table/e-cell-toggle.c
@@ -84,18 +84,21 @@ etog_unrealize (ECellView *ecv)
*/
static void
etog_draw (ECellView *ecell_view, GdkDrawable *drawable,
- int model_col, int view_col, int row, gboolean selected,
+ int model_col, int view_col, int row, ECellFlags flags,
int x1, int y1, int x2, int y2)
{
ECellToggle *toggle = E_CELL_TOGGLE (ecell_view->ecell);
+ gboolean selected;
#if 0
ECellToggleView *toggle_view = (ECellToggleView *) ecell_view;
#endif
GdkPixbuf *image;
int x, y, width, height;
-
+
const int value = GPOINTER_TO_INT (
e_table_model_value_at (ecell_view->e_table_model, model_col, row));
+
+ selected = flags & E_CELL_SELECTED;
if (value >= toggle->n_states){
g_warning ("Value from the table model is %d, the states we support are [0..%d)\n",