From 27106709eca576afea5ec124ffbdd39694418766 Mon Sep 17 00:00:00 2001 From: Joshua Sled Date: Sun, 7 May 2006 20:12:08 +0000 Subject: [PATCH] Bug#340936: Actually close the SX list when we are button-requested to Close the dialog, thus cleaning up properly. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13940 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 6 ++++++ src/gnome/dialog-scheduledxaction.c | 15 ++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a3120710ac..bce2af35d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-07 Joshua Sled + + * src/gnome/dialog-scheduledxaction.c (sxd_close_handler): + Actually close the dialog when we are button-requested to Close + the dialog, thus cleaning up properly. Bug#340936. + 2006-05-07 Joshua Sled * src/register/register-gnome/formulacell-gnome.c diff --git a/src/gnome/dialog-scheduledxaction.c b/src/gnome/dialog-scheduledxaction.c index 3f7eff90bc..038ef04344 100644 --- a/src/gnome/dialog-scheduledxaction.c +++ b/src/gnome/dialog-scheduledxaction.c @@ -250,12 +250,12 @@ static guint gnc_sxed_menu_n_entries = G_N_ELEMENTS (gnc_sxed_menu_entries); static void -sxd_close_handler ( gpointer user_data ) +sxd_close_handler (gpointer user_data) { SchedXactionDialog *sxd = user_data; - - gnc_sxl_record_size( sxd ); - gtk_widget_hide( sxd->dialog ); + gnc_sxl_record_size(sxd); + gtk_widget_hide(sxd->dialog); + gtk_widget_destroy(sxd->dialog); } static @@ -1165,7 +1165,12 @@ scheduledxaction_dialog_destroy(GtkObject *object, gpointer data) gnc_unregister_gui_component_by_data (DIALOG_SCHEDXACTION_CM_CLASS, sxd); - // FIXME: um. We should free memory and stuff, here. + // FIXME: um. We should free memory and stuff, here... + /* + GladeXML *gxml; + GncDenseCal *gdcal; + GHashTable *sxData; + */ g_free( sxd ); }