diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-04 11:47:27 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-05 09:22:21 +0800 |
commit | 5c80f1534b435ff5c1c9cc88eb9f5c5c1124f82a (patch) | |
tree | 92b05ad7116690bf2da53a0fa6ba813fcbea50c7 /widgets/table/e-cell-popup.c | |
parent | 69945127d8a7933512bb14eb20ff85354704b5cc (diff) | |
download | gsoc2013-evolution-5c80f1534b435ff5c1c9cc88eb9f5c5c1124f82a.tar.gz gsoc2013-evolution-5c80f1534b435ff5c1c9cc88eb9f5c5c1124f82a.tar.zst gsoc2013-evolution-5c80f1534b435ff5c1c9cc88eb9f5c5c1124f82a.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'widgets/table/e-cell-popup.c')
-rw-r--r-- | widgets/table/e-cell-popup.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/widgets/table/e-cell-popup.c b/widgets/table/e-cell-popup.c index 45c6d07377..c4ca572a85 100644 --- a/widgets/table/e-cell-popup.c +++ b/widgets/table/e-cell-popup.c @@ -212,14 +212,16 @@ ecp_kill_view (ECellView *ecv) { ECellPopupView *ecp_view = (ECellPopupView *) ecv; - if (ecp_view->cell_view.kill_view_cb) - (ecp_view->cell_view.kill_view_cb)(ecv, ecp_view->cell_view.kill_view_cb_data); + if (ecp_view->cell_view.kill_view_cb) + ecp_view->cell_view.kill_view_cb ( + ecv, ecp_view->cell_view.kill_view_cb_data); - if (ecp_view->cell_view.kill_view_cb_data) - g_list_free(ecp_view->cell_view.kill_view_cb_data); + if (ecp_view->cell_view.kill_view_cb_data) + g_list_free (ecp_view->cell_view.kill_view_cb_data); if (ecp_view->child_view) e_cell_kill_view (ecp_view->child_view); + g_free (ecp_view); } @@ -261,14 +263,18 @@ ecp_draw (ECellView *ecv, GdkDrawable *drawable, { ECellPopup *ecp = E_CELL_POPUP (ecv->ecell); ECellPopupView *ecp_view = (ECellPopupView *) ecv; - GtkWidget *canvas = GTK_WIDGET (GNOME_CANVAS_ITEM (ecv->e_table_item_view)->canvas); + GtkWidget *canvas; GtkShadowType shadow; GdkRectangle rect; gboolean show_popup_arrow; + canvas = GTK_WIDGET (GNOME_CANVAS_ITEM (ecv->e_table_item_view)->canvas); + /* Display the popup arrow if we are the cursor cell, or the popup is shown for this cell. */ - show_popup_arrow = e_table_model_is_cell_editable (ecv->e_table_model, model_col, row) && + show_popup_arrow = + e_table_model_is_cell_editable ( + ecv->e_table_model, model_col, row) && (flags & E_CELL_CURSOR || (ecp->popup_shown && ecp->popup_view_col == view_col && ecp->popup_row == row @@ -486,10 +492,13 @@ e_cell_popup_do_popup (ECellPopupView *ecp_view, void e_cell_popup_queue_cell_redraw (ECellPopup *ecp) { - ETableItem *eti = E_TABLE_ITEM (ecp->popup_cell_view->cell_view.e_table_item_view); + ETableItem *eti; + + 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); + e_table_item_redraw_range ( + eti, ecp->popup_view_col, ecp->popup_row, + ecp->popup_view_col, ecp->popup_row); } void |