Commit b41f0e5c authored by Michael Meeks's avatar Michael Meeks

Jon's work; excel off by 1 cleans, kill python debug, clean

Jon's work;
	excel off by 1 cleans,
 	kill python debug,
	clean plugin-manager.
parent 526d678a
2000-01-05 Jon K Hellan <hellan@acm.org>
* src/plugin-manager.c (struct PluginManager): Remove unused
members. (BUTTON_ADD, BUTTON_REMOVE, BUTTON_CLOSE): Define
(populate_clist):Remove set_sensitive. (row_cb): Use BUTTON_REMOVE define.
(plugin_manager_new): Use BUTTON_.. defines. Allow user to expand
size. Widen.
2000-01-06 Michael Meeks <mmeeks@gnu.org>
* src/xml-io.c (xml_read_style): Actually read & use the font size; how
......
Gnumeric 0.48
Miguel :
Miguel:
* Fix annoying flashing cursor bug.
Jody :
Jody:
* Parse errors in formulas.
* Improve xml export of borders to include cleared borders.
* Undo.
......@@ -11,6 +11,10 @@ Jody :
Morten:
* Revamp the memory handling of the parser.
Jon:
* Found xml io font size loading bug.
* Excel export clean.
--------------------------------------------------------------------------
Gnumeric 0.47
......
2000-01-05 Jon K Hellan <hellan@acm.org>
* src/plugin-manager.c (struct PluginManager): Remove unused
members. (BUTTON_ADD, BUTTON_REMOVE, BUTTON_CLOSE): Define
(populate_clist):Remove set_sensitive. (row_cb): Use BUTTON_REMOVE define.
(plugin_manager_new): Use BUTTON_.. defines. Allow user to expand
size. Widen.
2000-01-06 Michael Meeks <mmeeks@gnu.org>
* src/xml-io.c (xml_read_style): Actually read & use the font size; how
......
2000-01-05 Jon K Hellan <hellan@acm.org>
* ms-excel-write.c (write_colinfos): Fix off by one error.
(write_sheet_bools): Ditto.
2000-01-03 Jody Goldberg <jgoldberg@home.com>
* ms-excel-read.c (ms_excel_read_sheet) : extend support for WINDOW2.
......
......@@ -2703,7 +2703,7 @@ write_colinfos (BiffPut *bp, ExcelSheet *sheet)
col.first = i;
}
}
col.last = sheet->maxx;
col.last = sheet->maxx - 1;
write_colinfo (bp, &col);
}
......@@ -2843,7 +2843,7 @@ write_sheet_bools (BiffPut *bp, ExcelSheet *sheet)
} else {
data = ms_biff_put_len_next (bp, (0x200 | BIFF_DIMENSIONS), 10);
MS_OLE_SET_GUINT16 (data + 0, 0);
MS_OLE_SET_GUINT16 (data + 2, sheet->maxy-1);
MS_OLE_SET_GUINT16 (data + 2, sheet->maxy);
MS_OLE_SET_GUINT16 (data + 4, 0);
MS_OLE_SET_GUINT16 (data + 6, sheet->maxx);
MS_OLE_SET_GUINT16 (data + 8, 0x0000);
......
2000-01-03 Jon K Hellan <hellan@acm.org>
* plugins/python/python.c (initgnumeric): No longer display
Python initialization message.
......@@ -166,7 +166,6 @@ initgnumeric(void)
{
PyImport_AddModule ("gnumeric");
Py_InitModule ("gnumeric", gnumeric_funcs);
g_print (_("Gnumeric/Python module initialized\n"));
}
static int
......
......@@ -16,15 +16,14 @@ typedef struct
{
Workbook *workbook;
GtkWidget *dialog;
GtkWidget *hbox;
GtkWidget *vbbox;
GtkWidget *scrollwin;
GtkWidget *clist;
GtkWidget *button_add;
GtkWidget *button_remove;
GtkWidget *button_close;
} PluginManager;
#define BUTTON_ADD 0
#define BUTTON_REMOVE BUTTON_ADD + 1
#define BUTTON_CLOSE BUTTON_REMOVE + 1
static void
add_to_clist (PluginData *pd, GtkWidget *clist)
{
......@@ -41,7 +40,6 @@ add_to_clist (PluginData *pd, GtkWidget *clist)
static void
populate_clist (PluginManager *pm)
{
gtk_widget_set_sensitive (pm->button_remove, 0);
gtk_clist_freeze (GTK_CLIST (pm->clist));
gtk_clist_clear (GTK_CLIST (pm->clist));
g_list_foreach (plugin_list, (GFunc) add_to_clist, pm->clist);
......@@ -84,10 +82,10 @@ row_cb (GtkWidget * clist, gint row, gint col,
{
if (GTK_CLIST (clist)->selection != NULL)
gnome_dialog_set_sensitive (GNOME_DIALOG (pm->dialog),
1, TRUE);
BUTTON_REMOVE, TRUE);
else
gnome_dialog_set_sensitive (GNOME_DIALOG (pm->dialog),
1, FALSE);
BUTTON_REMOVE, FALSE);
}
static gint
......@@ -130,19 +128,19 @@ plugin_manager_new (Workbook *wb)
pm->clist = gtk_clist_new_with_titles (2, titles);
gtk_clist_column_titles_passive (GTK_CLIST (pm->clist));
gtk_widget_set_usize (pm->clist, 300, 120);
gtk_widget_set_usize (pm->clist, 500, 120);
gtk_container_add (GTK_CONTAINER (pm->scrollwin), pm->clist);
gtk_widget_realize (pm->clist);
populate_clist (pm);
gnome_dialog_button_connect(GNOME_DIALOG (pm->dialog), 0,
gnome_dialog_button_connect(GNOME_DIALOG (pm->dialog), BUTTON_ADD,
GTK_SIGNAL_FUNC (add_cb), pm);
gnome_dialog_button_connect(GNOME_DIALOG (pm->dialog), 1,
gnome_dialog_button_connect(GNOME_DIALOG (pm->dialog), BUTTON_REMOVE,
GTK_SIGNAL_FUNC (remove_cb), pm);
gnome_dialog_button_connect(GNOME_DIALOG (pm->dialog), 2,
gnome_dialog_button_connect(GNOME_DIALOG (pm->dialog), BUTTON_CLOSE,
GTK_SIGNAL_FUNC (close_cb), pm);
gtk_signal_connect (GTK_OBJECT (pm->clist), "select_row",
......@@ -154,8 +152,10 @@ plugin_manager_new (Workbook *wb)
gtk_signal_connect (GTK_OBJECT (pm->dialog), "key_press_event",
GTK_SIGNAL_FUNC (pm_key_event), NULL);
gnome_dialog_set_sensitive (GNOME_DIALOG (pm->dialog), 1, FALSE);
gnome_dialog_set_default (GNOME_DIALOG (pm->dialog), 2);
gnome_dialog_set_sensitive (GNOME_DIALOG (pm->dialog),
BUTTON_REMOVE, FALSE);
gnome_dialog_set_default (GNOME_DIALOG (pm->dialog), BUTTON_CLOSE);
gtk_window_set_policy (GTK_WINDOW (pm->dialog), FALSE, TRUE, FALSE);
gtk_widget_show_all (GNOME_DIALOG (pm->dialog)->vbox);
......
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