diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-07-18 22:01:46 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-07-18 22:54:28 +0800 |
commit | 63e74f2171125b30b589da22e6a25e02ee3d0240 (patch) | |
tree | 03b5c94bc85e9d008c69bf64f417cfda7be9d38f /widgets/misc/e-dateedit.c | |
parent | 0512391cc3af7c16a7229bcce0c2c3da1b3fbd37 (diff) | |
download | gsoc2013-evolution-63e74f2171125b30b589da22e6a25e02ee3d0240.tar gsoc2013-evolution-63e74f2171125b30b589da22e6a25e02ee3d0240.tar.gz gsoc2013-evolution-63e74f2171125b30b589da22e6a25e02ee3d0240.tar.bz2 gsoc2013-evolution-63e74f2171125b30b589da22e6a25e02ee3d0240.tar.lz gsoc2013-evolution-63e74f2171125b30b589da22e6a25e02ee3d0240.tar.xz gsoc2013-evolution-63e74f2171125b30b589da22e6a25e02ee3d0240.tar.zst gsoc2013-evolution-63e74f2171125b30b589da22e6a25e02ee3d0240.zip |
EDateEdit cleanups.
Diffstat (limited to 'widgets/misc/e-dateedit.c')
-rw-r--r-- | widgets/misc/e-dateedit.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c index 60b6b42d35..3867676065 100644 --- a/widgets/misc/e-dateedit.c +++ b/widgets/misc/e-dateedit.c @@ -2333,17 +2333,19 @@ e_date_edit_set_time_internal (EDateEdit *dedit, return time_changed; } -gboolean e_date_edit_get_twodigit_year_can_future (EDateEdit *dedit) +gboolean +e_date_edit_get_twodigit_year_can_future (EDateEdit *dedit) { - g_return_val_if_fail (dedit != NULL, FALSE); + g_return_val_if_fail (E_IS_DATE_EDIT (dedit), FALSE); return dedit->priv->twodigit_year_can_future; } -void e_date_edit_set_twodigit_year_can_future (EDateEdit *dedit, - gboolean value) +void +e_date_edit_set_twodigit_year_can_future (EDateEdit *dedit, + gboolean value) { - g_return_if_fail (dedit != NULL); + g_return_if_fail (E_IS_DATE_EDIT (dedit)); dedit->priv->twodigit_year_can_future = value; } @@ -2375,8 +2377,7 @@ e_date_edit_set_get_time_callback (EDateEdit *dedit, GtkWidget * e_date_edit_get_entry (EDateEdit *dedit) { - EDateEditPrivate *priv; - priv = dedit->priv; + g_return_val_if_fail (E_IS_DATE_EDIT (dedit), NULL); - return GTK_WIDGET (priv->date_entry); + return GTK_WIDGET (dedit->priv->date_entry); } |