aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-popup.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-11-06 03:52:33 +0800
committerChris Lahey <clahey@src.gnome.org>2001-11-06 03:52:33 +0800
commit514e14b2c6fe46d3a786517cfd546a9ac2080af9 (patch)
tree2492381b7de6967d2e8d7d178e7b6d8a751bb5ec /widgets/table/e-cell-popup.c
parent76d416305f74670cebaaaa639f39554b77cbe3e0 (diff)
downloadgsoc2013-evolution-514e14b2c6fe46d3a786517cfd546a9ac2080af9.tar.gz
gsoc2013-evolution-514e14b2c6fe46d3a786517cfd546a9ac2080af9.tar.zst
gsoc2013-evolution-514e14b2c6fe46d3a786517cfd546a9ac2080af9.zip
New functions here.
2001-11-03 Christopher James Lahey <clahey@ximian.com> * e-cell-popup.c, e-cell-popup.h (e_cell_popup_set_shown, e_cell_popup_queue_cell_redraw): New functions here. * e-cell-combo.c: Use e_cell_popup_set_shown to set the popup_shown variable so that ECellPopup can properly request a redraw. svn path=/trunk/; revision=14592
Diffstat (limited to 'widgets/table/e-cell-popup.c')
-rw-r--r--widgets/table/e-cell-popup.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/widgets/table/e-cell-popup.c b/widgets/table/e-cell-popup.c
index 3791d4c7aa..bf0104758f 100644
--- a/widgets/table/e-cell-popup.c
+++ b/widgets/table/e-cell-popup.c
@@ -507,3 +507,22 @@ e_cell_popup_do_popup (ECellPopupView *ecp_view,
return popup_func ? popup_func (ecp, event, row, view_col) : FALSE;
}
+
+/* This redraws the popup cell. Only use this if you know popup_view_col and
+ popup_row are valid. */
+void
+e_cell_popup_queue_cell_redraw (ECellPopup *ecp)
+{
+ ETableItem *eti = E_TABLE_ITEM (ecp->popup_cell_view->cell_view.e_table_item_view);
+
+ e_table_item_redraw_range (eti, ecp->popup_view_col, ecp->popup_row,
+ ecp->popup_view_col, ecp->popup_row);
+}
+
+void
+e_cell_popup_set_shown (ECellPopup *ecp,
+ gboolean shown)
+{
+ ecp->popup_shown = shown;
+ e_cell_popup_queue_cell_redraw (ecp);
+}