Commit 3659f22d authored by Arturo Espinosa's avatar Arturo Espinosa
Browse files

oops forgot to add this file

parent f5b1ccd7
/*
* about.c: Shows the contributors to Gnumeric.
*
* Author:
* Miguel de Icaza (miguel@gnu.org)
*
*/
#include <config.h>
#include <gnome.h>
#include "gnumeric.h"
#include "dialogs.h"
void
dialog_about (void)
{
GtkWidget *about;
const gchar *authors[] = {
"Miguel de Icaza, main programmer.",
"Daniel Viellard, XML support.",
"Chris Lahey, Number format engine.",
"Tom Dyas, Plugin support.",
"Federico Mena, Canvas support.",
NULL
};
about = gnome_about_new (_("Gnumeric"), VERSION,
"(C) 1998 Miguel de Icaza",
authors,
_("The GNOME spreadsheet."),
NULL);
gnome_dialog_set_modal (GNOME_DIALOG (about));
gnome_dialog_set_close (GNOME_DIALOG (about), TRUE);
gtk_widget_show (about);
}
......@@ -206,7 +206,7 @@ cell_render_value (Cell *cell)
style_color_unref (cell->render_color);
cell->render_color = NULL;
}
str = format_value (cell->style->format, cell->value, &color);
cell->render_color = color;
......
/*
* about.c: Shows the contributors to Gnumeric.
*
* Author:
* Miguel de Icaza (miguel@gnu.org)
*
*/
#include <config.h>
#include <gnome.h>
#include "gnumeric.h"
#include "dialogs.h"
void
dialog_about (void)
{
GtkWidget *about;
const gchar *authors[] = {
"Miguel de Icaza, main programmer.",
"Daniel Viellard, XML support.",
"Chris Lahey, Number format engine.",
"Tom Dyas, Plugin support.",
"Federico Mena, Canvas support.",
NULL
};
about = gnome_about_new (_("Gnumeric"), VERSION,
"(C) 1998 Miguel de Icaza",
authors,
_("The GNOME spreadsheet."),
NULL);
gnome_dialog_set_modal (GNOME_DIALOG (about));
gnome_dialog_set_close (GNOME_DIALOG (about), TRUE);
gtk_widget_show (about);
}
......@@ -1075,7 +1075,10 @@ format_value (StyleFormat *format, Value *value, StyleColor **color)
case VALUE_FLOAT:
if (is_general)
entry.format = "0.##";
v = format_number (value->v.v_float, &entry);
if (finite (value->v.v_float))
v = format_number (value->v.v_float, &entry);
else
return g_strdup ("#VAL");
break;
case VALUE_INTEGER:
......
......@@ -685,10 +685,10 @@ gnumeric_sheet_key (GtkWidget *widget, GdkEventKey *event)
/* fall down */
default:
if ((event->state & (GDK_MOD1_MASK|GDK_CONTROL_MASK)) != 0)
return 0;
if (!gsheet->item_editor){
if ((event->state & (GDK_MOD1_MASK|GDK_CONTROL_MASK)) != 0)
return 0;
if (event->keyval >= 0x20 && event->keyval <= 0xff)
sheet_start_editing_at_cursor (sheet);
}
......
......@@ -685,10 +685,10 @@ gnumeric_sheet_key (GtkWidget *widget, GdkEventKey *event)
/* fall down */
default:
if ((event->state & (GDK_MOD1_MASK|GDK_CONTROL_MASK)) != 0)
return 0;
if (!gsheet->item_editor){
if ((event->state & (GDK_MOD1_MASK|GDK_CONTROL_MASK)) != 0)
return 0;
if (event->keyval >= 0x20 && event->keyval <= 0xff)
sheet_start_editing_at_cursor (sheet);
}
......
......@@ -188,7 +188,6 @@ sheet_set_zoom_factor (Sheet *sheet, double factor)
sheet_foreach_col (sheet, sheet_compute_col_row_new_size, NULL);
sheet_foreach_row (sheet, sheet_compute_col_row_new_size, NULL);
g_warning ("Need to recompute string lenghts of cells\n");
for (l = sheet->sheet_views; l; l = l->next){
SheetView *sheet_view = l->data;
......
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