diff options
author | JP Rosevear <jpr@ximian.com> | 2003-10-30 03:29:47 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-10-30 03:29:47 +0800 |
commit | 741182663966e288b4de8666f336b70a7d4ee856 (patch) | |
tree | 04c98771a2dd81aa3349f5705f7bcde6f34af4b4 /calendar/gui/dialogs | |
parent | 7a7f61dfde6db608dabb65022d3a817cdf710a98 (diff) | |
download | gsoc2013-evolution-741182663966e288b4de8666f336b70a7d4ee856.tar.gz gsoc2013-evolution-741182663966e288b4de8666f336b70a7d4ee856.tar.zst gsoc2013-evolution-741182663966e288b4de8666f336b70a7d4ee856.zip |
build new files
2003-10-29 JP Rosevear <jpr@ximian.com>
* gui/Makefile.am: build new files
* gui/dialogs/comp-editor-util.c (date_edit_destroy_cb): unref the
config manager
(comp_editor_new_date_edit): set up a config manager for the date
editor
* gui/e-date-edit-config.[hc]: config manager for e-date-edit
svn path=/trunk/; revision=23122
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/comp-editor-util.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/comp-editor-util.c b/calendar/gui/dialogs/comp-editor-util.c index d06234edda..4c3b683ec4 100644 --- a/calendar/gui/dialogs/comp-editor-util.c +++ b/calendar/gui/dialogs/comp-editor-util.c @@ -34,6 +34,7 @@ #include <e-util/e-time-utils.h> #include <cal-util/timeutil.h> #include "../calendar-config.h" +#include "../e-date-edit-config.h" #include "comp-editor-util.h" @@ -202,6 +203,14 @@ comp_editor_date_label (CompEditorPageDates *dates, GtkWidget *label) gtk_label_set_text (GTK_LABEL (label), buffer); } +static void +date_edit_destroy_cb (EDateEdit *date_edit, gpointer data) +{ + EDateEditConfig *config = data; + + g_object_unref (config); +} + /** * comp_editor_new_date_edit: * @show_date: Whether to show a date picker in the widget. @@ -219,7 +228,8 @@ comp_editor_new_date_edit (gboolean show_date, gboolean show_time, gboolean make_time_insensitive) { EDateEdit *dedit; - + EDateEditConfig *config; + dedit = E_DATE_EDIT (e_date_edit_new ()); e_date_edit_set_show_date (dedit, show_date); @@ -229,8 +239,10 @@ comp_editor_new_date_edit (gboolean show_date, gboolean show_time, #else e_date_edit_set_make_time_insensitive (dedit, FALSE); #endif - calendar_config_configure_e_date_edit (dedit); - + + config = e_date_edit_config_new (dedit); + g_signal_connect (G_OBJECT (dedit), "destroy", G_CALLBACK (date_edit_destroy_cb), config); + return GTK_WIDGET (dedit); } |