diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-17 02:24:31 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-17 07:52:52 +0800 |
commit | 992c8b7d58025cf4d04ed3665210f191c8048339 (patch) | |
tree | ed04bd47c142c1a35820b03c6df8e8455d86f15c /widgets/table/e-cell-combo.c | |
parent | 2c476af581cc64bb3de8edc726149a7d8e9677b8 (diff) | |
download | gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.gz gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.bz2 gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.lz gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.xz gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.tar.zst gsoc2013-evolution-992c8b7d58025cf4d04ed3665210f191c8048339.zip |
libetable cleanups.
Diffstat (limited to 'widgets/table/e-cell-combo.c')
-rw-r--r-- | widgets/table/e-cell-combo.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/widgets/table/e-cell-combo.c b/widgets/table/e-cell-combo.c index c06e5450e8..168061e4e7 100644 --- a/widgets/table/e-cell-combo.c +++ b/widgets/table/e-cell-combo.c @@ -109,13 +109,13 @@ static gint e_cell_combo_key_press (GtkWidget *popup_window, static void e_cell_combo_update_cell (ECellCombo *ecc); static void e_cell_combo_restart_edit (ECellCombo *ecc); -G_DEFINE_TYPE (ECellCombo, e_cell_combo, E_CELL_POPUP_TYPE) +G_DEFINE_TYPE (ECellCombo, e_cell_combo, E_TYPE_CELL_POPUP) static void -e_cell_combo_class_init (ECellComboClass *klass) +e_cell_combo_class_init (ECellComboClass *class) { - ECellPopupClass *ecpc = E_CELL_POPUP_CLASS (klass); - GObjectClass *object_class = G_OBJECT_CLASS (klass); + ECellPopupClass *ecpc = E_CELL_POPUP_CLASS (class); + GObjectClass *object_class = G_OBJECT_CLASS (class); object_class->dispose = e_cell_combo_dispose; @@ -203,11 +203,9 @@ e_cell_combo_init (ECellCombo *ecc) * Returns: an ECellCombo object. */ ECell * -e_cell_combo_new (void) +e_cell_combo_new (void) { - ECellCombo *ecc = g_object_new (E_CELL_COMBO_TYPE, NULL); - - return (ECell*) ecc; + return g_object_new (E_TYPE_CELL_COMBO, NULL); } /* |