Commit 6ec946de authored by Morten Welinder's avatar Morten Welinder

Compilation fixes. (Trailing commas before braces.)

parent c686bc20
2002-01-08 Morten Welinder <terra@diku.dk>
* src/eval.h (DependentFlags): Kill comma before closing brace.
* src/clipboard.h (CellCopyType): Ditto.
* src/format-template.h (FreqDirection): Ditto.
* src/sheet-object.h (SheetObjectDirection,
SheetObjectAnchorType): Ditto.
* src/symbol.h (SymbolType): Ditto.
2002-01-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* analysis-tools.c (average_tool) : calculate standard errors
......
2002-01-08 Morten Welinder <terra@diku.dk>
* src/eval.h (DependentFlags): Kill comma before closing brace.
* src/clipboard.h (CellCopyType): Ditto.
* src/format-template.h (FreqDirection): Ditto.
* src/sheet-object.h (SheetObjectDirection,
SheetObjectAnchorType): Ditto.
* src/symbol.h (SymbolType): Ditto.
2002-01-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* analysis-tools.c (average_tool) : calculate standard errors
......
2002-01-08 Morten Welinder <terra@diku.dk>
* src/eval.h (DependentFlags): Kill comma before closing brace.
* src/clipboard.h (CellCopyType): Ditto.
* src/format-template.h (FreqDirection): Ditto.
* src/sheet-object.h (SheetObjectDirection,
SheetObjectAnchorType): Ditto.
* src/symbol.h (SymbolType): Ditto.
2002-01-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* analysis-tools.c (average_tool) : calculate standard errors
......
2002-01-08 Morten Welinder <terra@diku.dk>
* src/eval.h (DependentFlags): Kill comma before closing brace.
* src/clipboard.h (CellCopyType): Ditto.
* src/format-template.h (FreqDirection): Ditto.
* src/sheet-object.h (SheetObjectDirection,
SheetObjectAnchorType): Ditto.
* src/symbol.h (SymbolType): Ditto.
2002-01-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* analysis-tools.c (average_tool) : calculate standard errors
......
......@@ -1448,7 +1448,7 @@ gnumeric_convert (FunctionEvalInfo *ei, Value **argv)
static const eng_convert_unit_t weight_units[] = {
{ "g", 1.0 },
{ "sg", one_g_to_sg, },
{ "sg", one_g_to_sg },
{ "lbm", one_g_to_lbm },
{ "u", one_g_to_u },
{ "ozm", one_g_to_ozm },
......
......@@ -35,7 +35,7 @@ enum Value_Class {
VALUE_CLASS_FORMULA = 8,
VALUE_CLASS_ERROR = 16,
VALUE_CLASS_ARRAY = 64,
VALUE_CLASS_BOGUS = -1,
VALUE_CLASS_BOGUS = -1
};
......
......@@ -42,7 +42,7 @@ enum {
typedef enum {
CELL_COPY_TYPE_CELL,
CELL_COPY_TYPE_TEXT,
CELL_COPY_TYPE_TEXT
} CellCopyType;
typedef struct {
......
......@@ -28,7 +28,7 @@ typedef enum {
/* Types */
DEPENDENT_CELL = 0x00000001,
DEPENDENT_TYPE_MASK = 0x00000fff,
DEPENDENT_TYPE_MASK = 0x00000fff
} DependentFlags;
#define dependent_type(dep) ((dep)->flags & DEPENDENT_TYPE_MASK)
......
2002-01-08 Morten Welinder <terra@diku.dk>
* dialog-cell-format.c (fmt_dialog_enable_widgets): Kill comma
before closing brace.
(fmt_dialog_impl): Ditto.
* dialog-zoom.c (dialog_zoom_impl): Ditto.
2002-01-08 Andreas J. Guelzow <aguelzow@taliesin.ca>
* moving-averages.glade : Enable standard error checkbox
......
......@@ -664,7 +664,7 @@ fmt_dialog_enable_widgets (FormatState *state, int page)
/* Special */
{ F_MAX_WIDGET },
/* Custom */
{ F_ENTRY, F_LIST_SCROLL, F_LIST, F_DELETE, F_MAX_WIDGET },
{ F_ENTRY, F_LIST_SCROLL, F_LIST, F_DELETE, F_MAX_WIDGET }
};
int const old_page = state->format.current_type;
......@@ -2565,7 +2565,7 @@ fmt_dialog_impl (FormatState *state, FormatDialogPosition_t pageno)
{ "line_pattern_thin", STYLE_BORDER_THIN },
{ "line_pattern_double", STYLE_BORDER_DOUBLE },
{ NULL },
{ NULL }
};
static char const * const pattern_buttons[] = {
"gp_solid", "gp_75grey", "gp_50grey",
......
......@@ -62,9 +62,9 @@ dialog_zoom_impl (WorkbookControlGUI *wbcg, Sheet *cur_sheet, GladeXML *gui)
{ "radio_100", 1. },
{ "radio_75", .75 },
{ "radio_50", .50 },
{ "radio_25", .25 },
{ "radio_25", .25 }
};
radio_cb_data cb_data[NUM_RADIO_BUTTONS];
radio_cb_data cb_data[NUM_RADIO_BUTTONS];
GtkCList *list;
GtkWidget *dialog, *focus_target;
......
......@@ -28,7 +28,7 @@ typedef enum {
/* Types */
DEPENDENT_CELL = 0x00000001,
DEPENDENT_TYPE_MASK = 0x00000fff,
DEPENDENT_TYPE_MASK = 0x00000fff
} DependentFlags;
#define dependent_type(dep) ((dep)->flags & DEPENDENT_TYPE_MASK)
......
......@@ -57,7 +57,7 @@ typedef struct {
typedef enum {
FREQ_DIRECTION_NONE,
FREQ_DIRECTION_HORIZONTAL,
FREQ_DIRECTION_VERTICAL,
FREQ_DIRECTION_VERTICAL
} FreqDirection;
typedef struct {
......
2002-01-08 Morten Welinder <terra@diku.dk>
* fn-eng.c (gnumeric_convert): Kill comma before closing brace.
* fn-information.c (enum Value_Class): Ditto.
2002-01-06 Jody Goldberg <jody@gnome.org>
* Release 1.0.1
......
......@@ -1448,7 +1448,7 @@ gnumeric_convert (FunctionEvalInfo *ei, Value **argv)
static const eng_convert_unit_t weight_units[] = {
{ "g", 1.0 },
{ "sg", one_g_to_sg, },
{ "sg", one_g_to_sg },
{ "lbm", one_g_to_lbm },
{ "u", one_g_to_u },
{ "ozm", one_g_to_ozm },
......
......@@ -35,7 +35,7 @@ enum Value_Class {
VALUE_CLASS_FORMULA = 8,
VALUE_CLASS_ERROR = 16,
VALUE_CLASS_ARRAY = 64,
VALUE_CLASS_BOGUS = -1,
VALUE_CLASS_BOGUS = -1
};
......
......@@ -18,7 +18,7 @@ typedef enum {
SO_ANCHOR_PTS_FROM_COLROW_END = 0x21,
/* only allowed for Anchors 2-3 to support fixed size */
SO_ANCHOR_PTS_ABSOLUTE = 0x30,
SO_ANCHOR_PTS_ABSOLUTE = 0x30
} SheetObjectAnchorType;
typedef enum {
......@@ -32,7 +32,7 @@ typedef enum {
SO_DIR_H_MASK = 0x01,
SO_DIR_RIGHT = 0x01,
SO_DIR_V_MASK = 0x10,
SO_DIR_DOWN = 0x10,
SO_DIR_DOWN = 0x10
} SheetObjectDirection;
struct _SheetObjectAnchor {
......
......@@ -2,7 +2,7 @@
#define GNUMERIC_SYMBOL_H
typedef enum {
SYMBOL_FUNCTION,
SYMBOL_FUNCTION
} SymbolType;
typedef struct {
......
......@@ -3847,6 +3847,7 @@ show_gui (WorkbookControlGUI *wbcg)
int y_loc = 0;
gdouble fx, fy;
GdkGeometry geometry;
GdkWindowHints size_hints = GDK_HINT_MAX_SIZE;
fx = gnome_config_get_float_with_default (
"Gnumeric/Placement/WindowRelativeSizeX=0.75", NULL);
......@@ -3878,6 +3879,7 @@ show_gui (WorkbookControlGUI *wbcg)
if (result & YNegative)
y_loc = gdk_screen_height () - height + y_loc;
gtk_widget_set_uposition (GTK_WIDGET (wbcg->toplevel), x_loc, y_loc);
size_hints |= GDK_HINT_POS;
}
} else {
......@@ -3898,7 +3900,7 @@ show_gui (WorkbookControlGUI *wbcg)
geometry.max_width = sx;
geometry.max_height = sy;
gtk_window_set_geometry_hints (wbcg->toplevel, NULL,
&geometry, GDK_HINT_MAX_SIZE);
&geometry, size_hints);
x_geometry = NULL;
gtk_widget_show_all (GTK_WIDGET (wbcg->toplevel));
......
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