From dfb0db749801075ba67e24ac44de8fe9ac2ae2cc Mon Sep 17 00:00:00 2001 From: Adam Petaccia Date: Wed, 6 May 2009 13:28:18 -0400 Subject: =?UTF-8?q?Bug=20580900=20=E2=80=93=20Kill=20libgnomeui/gnome-date?= =?UTF-8?q?edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove unnecessary includes, and kill the unused e_dialog_dateedit_set() and e_dialog_dateedit_get() functions. --- e-util/e-dialog-widgets.c | 34 ---------------------------------- e-util/e-dialog-widgets.h | 3 --- 2 files changed, 37 deletions(-) (limited to 'e-util') diff --git a/e-util/e-dialog-widgets.c b/e-util/e-dialog-widgets.c index afe50a85b4..f1777ca55d 100644 --- a/e-util/e-dialog-widgets.c +++ b/e-util/e-dialog-widgets.c @@ -28,7 +28,6 @@ #include #include #include -#include #include "e-dialog-widgets.h" @@ -498,39 +497,6 @@ e_dialog_combo_box_get (GtkWidget *widget, const int *value_map) return i; } -/** - * e_dialog_dateedit_set: - * @widget: A #GnomeDateEdit widget. - * @t: Date/time value. - * - * Sets the value of a #GnomeDateEdit widget. - **/ -void -e_dialog_dateedit_set (GtkWidget *widget, time_t t) -{ - g_return_if_fail (widget != NULL); - g_return_if_fail (GNOME_IS_DATE_EDIT (widget)); - - gnome_date_edit_set_time (GNOME_DATE_EDIT (widget), t); -} - -/** - * e_dialog_dateedit_get: - * @widget: A #GnomeDateEdit widget. - * - * Queries the value of a #GnomeDateEdit widget. - * - * Return value: Date/time value. - **/ -time_t -e_dialog_dateedit_get (GtkWidget *widget) -{ - g_return_val_if_fail (widget != NULL, -1); - g_return_val_if_fail (GNOME_IS_DATE_EDIT (widget), -1); - - return gnome_date_edit_get_time (GNOME_DATE_EDIT (widget)); -} - /** * e_dialog_widget_hook_value: * @dialog: Dialog box in which the @widget lives in. diff --git a/e-util/e-dialog-widgets.h b/e-util/e-dialog-widgets.h index 1a46c02fd3..f5ff123a4f 100644 --- a/e-util/e-dialog-widgets.h +++ b/e-util/e-dialog-widgets.h @@ -46,9 +46,6 @@ int e_dialog_spin_get_int (GtkWidget *widget); void e_dialog_combo_box_set (GtkWidget *widget, int value, const int *value_map); int e_dialog_combo_box_get (GtkWidget *widget, const int *value_map); -void e_dialog_dateedit_set (GtkWidget *widget, time_t t); -time_t e_dialog_dateedit_get (GtkWidget *widget); - gboolean e_dialog_widget_hook_value (GtkWidget *dialog, GtkWidget *widget, gpointer value_var, gpointer info); -- cgit v1.2.3