Commit 474f1062 authored by Morten Welinder's avatar Morten Welinder Committed by Arturo Espinosa

Release the sheets and the hash table that held the references to the


1999-04-21  Morten Welinder  <terra@diku.dk>

	* src/workbook.c (workbook_do_destroy): Release the sheets and the
	hash table that held the references to the sheets.

	* src/func.c: warning fix.

1999-04-21  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/widget-editable-label.c (el_button_press_event): Add type
	cast to kill warning.

	* src/format.c: Include ieeefp.h if required.

Apr 20 16:34:38 1999  Morten Welinder  <terra@diku.dk>

	* ms-obj.c (ms_obj_read_obj): Initialise type.

1999-04-19  Morten Welinder  <terra@diku.dk>

	* ms-excel.c (biff_get_rk): Fixed up mask on eIEEE.
parent 5dd53224
1999-04-21 Morten Welinder <terra@diku.dk>
* src/workbook.c (workbook_do_destroy): Release the sheets and the
hash table that held the references to the sheets.
* src/func.c: warning fix.
1999-04-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/widget-editable-label.c (el_button_press_event): Add type
cast to kill warning.
* src/format.c: Include ieeefp.h if required.
1999-04-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/fn-string.c: Close parentheses in help_stubstitute function
......
1999-04-21 Morten Welinder <terra@diku.dk>
* src/workbook.c (workbook_do_destroy): Release the sheets and the
hash table that held the references to the sheets.
* src/func.c: warning fix.
1999-04-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/widget-editable-label.c (el_button_press_event): Add type
cast to kill warning.
* src/format.c: Include ieeefp.h if required.
1999-04-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/fn-string.c: Close parentheses in help_stubstitute function
......
1999-04-21 Morten Welinder <terra@diku.dk>
* src/workbook.c (workbook_do_destroy): Release the sheets and the
hash table that held the references to the sheets.
* src/func.c: warning fix.
1999-04-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/widget-editable-label.c (el_button_press_event): Add type
cast to kill warning.
* src/format.c: Include ieeefp.h if required.
1999-04-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/fn-string.c: Close parentheses in help_stubstitute function
......
1999-04-21 Morten Welinder <terra@diku.dk>
* src/workbook.c (workbook_do_destroy): Release the sheets and the
hash table that held the references to the sheets.
* src/func.c: warning fix.
1999-04-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/widget-editable-label.c (el_button_press_event): Add type
cast to kill warning.
* src/format.c: Include ieeefp.h if required.
1999-04-19 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/fn-string.c: Close parentheses in help_stubstitute function
......
......@@ -45,6 +45,10 @@ AM_GNU_GETTEXT
AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
dnl
dnl On Solaris finite() needs ieeefp.h
dnl
AC_CHECK_HEADER(ieeefp.h)
dnl **************************************************
dnl * ORBit support
......
Tue Apr 20 16:34:38 1999 Morten Welinder <terra@diku.dk>
* ms-obj.c (ms_obj_read_obj): Initialise type.
1999-04-19 Morten Welinder <terra@diku.dk>
* ms-excel.c (biff_get_rk): Fixed up mask on eIEEE.
......
......@@ -114,7 +114,7 @@ ms_obj_read_obj (MS_EXCEL_SHEET *sheet, BIFF_QUERY *q)
guint16 obj_type=BIFF_GETWORD(data+4);
guint16 obj_id =BIFF_GETWORD(data+6);
guint16 options =BIFF_GETWORD(data+8);
char *type;
char *type = NULL;
enum { Locked=0x1, Printable=0x2,
AutoFill=0x4, AutoLine=0x8 } flags;
printf ("Common object data len 0x%x "
......
......@@ -28,6 +28,9 @@
#include <math.h>
#include <locale.h>
#include <ctype.h>
#ifdef HAVE_IEEEFP_H
# include <ieeefp.h>
#endif
#include "gnumeric.h"
#include "format.h"
#include "dates.h"
......
......@@ -12,6 +12,7 @@
#include "gnumeric-sheet.h"
#include "utils.h"
#include "func.h"
#include "eval.h"
/* The list of categories */
static GPtrArray *categories = NULL;
......
......@@ -252,7 +252,7 @@ el_button_press_event (GtkWidget *widget, GdkEventButton *button)
return FALSE;
}
gtk_widget_event (GTK_WIDGET (el)->parent, button);
gtk_widget_event (GTK_WIDGET (el)->parent, (GdkEvent *) button);
return FALSE;
}
......
......@@ -252,7 +252,7 @@ el_button_press_event (GtkWidget *widget, GdkEventButton *button)
return FALSE;
}
gtk_widget_event (GTK_WIDGET (el)->parent, button);
gtk_widget_event (GTK_WIDGET (el)->parent, (GdkEvent *) button);
return FALSE;
}
......
......@@ -217,6 +217,15 @@ create_ellipse_cmd (GtkWidget *widget, Workbook *wb)
sheet_set_mode_type (sheet, SHEET_MODE_CREATE_OVAL);
}
static void
cb_sheet_do_destroy (gpointer key, gpointer value, gpointer user_data)
{
Sheet *sheet = value;
sheet->workbook = NULL;
sheet_destroy (sheet);
}
static void
workbook_do_destroy (Workbook *wb)
{
......@@ -235,7 +244,12 @@ workbook_do_destroy (Workbook *wb)
workbook_count--;
symbol_table_destroy (wb->symbol_names);
g_hash_table_foreach (wb->sheets, cb_sheet_do_destroy, NULL);
g_hash_table_destroy (wb->sheets);
g_free (wb);
if (workbook_count == 0)
gtk_main_quit ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment