Commit db1ddc6d authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Avoid "gboolean ... : 1". Ditto. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto.

2002-10-09  Morten Welinder  <terra@diku.dk>

	* src/gnumeric-graph.c (struct _GnmGraphVector): Avoid "gboolean
	... : 1".
	* src/item-bar.c (struct _ItemBar): Ditto.
	* src/item-cursor.c (struct _ItemCursor): Ditto.
	* src/formats.h (FormatCharacteristics): Ditto.
	* src/format-template.h (struct _FormatTemplate): Ditto.
	* src/sheet-private.h (struct _SheetPrivate): Ditto.
	* src/sheet-view.h (struct _SheetView): Ditto.
	* src/validation.h (struct _Validation): Ditto.
	* src/workbook-priv.h (struct _Workbook): Ditto.
	* src/expr-name.h (struct _GnmNamedExpr): Ditto.


2002-10-09  Morten Welinder  <welinder@rentec.com>

	* ms-obj.h (struct _MSObj): Avoid "gboolean ... : 1".
	* ms-excel-read.h (struct _ExcelSheet): Avoid "gboolean ... : 1".

etc.

2002-10-09  Morten Welinder  <terra@diku.dk>

	* api.c (w_glpk_print_lp): Fix type error.
parent dd77cd95
2002-10-09 Morten Welinder <terra@diku.dk>
* src/gnumeric-graph.c (struct _GnmGraphVector): Avoid "gboolean
... : 1".
* src/item-bar.c (struct _ItemBar): Ditto.
* src/item-cursor.c (struct _ItemCursor): Ditto.
* src/formats.h (FormatCharacteristics): Ditto.
* src/format-template.h (struct _FormatTemplate): Ditto.
* src/sheet-private.h (struct _SheetPrivate): Ditto.
* src/sheet-view.h (struct _SheetView): Ditto.
* src/validation.h (struct _Validation): Ditto.
* src/workbook-priv.h (struct _Workbook): Ditto.
* src/expr-name.h (struct _GnmNamedExpr): Ditto.
2002-10-09 Jody Goldberg <jody@gnome.org> 2002-10-09 Jody Goldberg <jody@gnome.org>
* src/commands.c (cmd_define_name_redo) : fix ref counting. * src/commands.c (cmd_define_name_redo) : fix ref counting.
......
2002-10-09 Morten Welinder <terra@diku.dk>
* src/gnumeric-graph.c (struct _GnmGraphVector): Avoid "gboolean
... : 1".
* src/item-bar.c (struct _ItemBar): Ditto.
* src/item-cursor.c (struct _ItemCursor): Ditto.
* src/formats.h (FormatCharacteristics): Ditto.
* src/format-template.h (struct _FormatTemplate): Ditto.
* src/sheet-private.h (struct _SheetPrivate): Ditto.
* src/sheet-view.h (struct _SheetView): Ditto.
* src/validation.h (struct _Validation): Ditto.
* src/workbook-priv.h (struct _Workbook): Ditto.
* src/expr-name.h (struct _GnmNamedExpr): Ditto.
2002-10-09 Jody Goldberg <jody@gnome.org> 2002-10-09 Jody Goldberg <jody@gnome.org>
* src/commands.c (cmd_define_name_redo) : fix ref counting. * src/commands.c (cmd_define_name_redo) : fix ref counting.
......
2002-10-09 Morten Welinder <terra@diku.dk>
* src/gnumeric-graph.c (struct _GnmGraphVector): Avoid "gboolean
... : 1".
* src/item-bar.c (struct _ItemBar): Ditto.
* src/item-cursor.c (struct _ItemCursor): Ditto.
* src/formats.h (FormatCharacteristics): Ditto.
* src/format-template.h (struct _FormatTemplate): Ditto.
* src/sheet-private.h (struct _SheetPrivate): Ditto.
* src/sheet-view.h (struct _SheetView): Ditto.
* src/validation.h (struct _Validation): Ditto.
* src/workbook-priv.h (struct _Workbook): Ditto.
* src/expr-name.h (struct _GnmNamedExpr): Ditto.
2002-10-09 Jody Goldberg <jody@gnome.org> 2002-10-09 Jody Goldberg <jody@gnome.org>
* src/commands.c (cmd_define_name_redo) : fix ref counting. * src/commands.c (cmd_define_name_redo) : fix ref counting.
......
2002-10-09 Morten Welinder <welinder@rentec.com>
* ms-obj.h (struct _MSObj): Avoid "gboolean ... : 1".
* ms-excel-read.h (struct _ExcelSheet): Avoid "gboolean ... : 1".
2002-10-10 Nick Lamb <njl98r@ecs.soton.ac.uk> 2002-10-10 Nick Lamb <njl98r@ecs.soton.ac.uk>
* plugin.xml.in: Excel 4.x had .XLW workbooks as well as .XLS * plugin.xml.in: Excel 4.x had .XLW workbooks as well as .XLS
......
...@@ -26,7 +26,7 @@ struct _ExcelSheet { ...@@ -26,7 +26,7 @@ struct _ExcelSheet {
ExcelWorkbook *wb; ExcelWorkbook *wb;
GHashTable *shared_formulae, *tables; GHashTable *shared_formulae, *tables;
gboolean freeze_panes : 1; gboolean freeze_panes;
}; };
typedef struct _BiffBoundsheetData { typedef struct _BiffBoundsheetData {
......
...@@ -99,8 +99,8 @@ struct _MSObj { ...@@ -99,8 +99,8 @@ struct _MSObj {
int excel_type; int excel_type;
char const *excel_type_name; char const *excel_type_name;
gboolean ignore_combo_in_filter : 1; gboolean ignore_combo_in_filter;
gboolean is_linked : 1; gboolean is_linked;
GHashTable *attrs; GHashTable *attrs;
}; };
......
2002-10-09 Morten Welinder <terra@diku.dk>
* openoffice-read.c (OOParseState): Avoid "gboolean ... : 1".
2002-10-08 Jody Goldberg <jody@gnome.org> 2002-10-08 Jody Goldberg <jody@gnome.org>
* openoffice-read.c (oo_style) : correctly layer parent styles but * openoffice-read.c (oo_style) : correctly layer parent styles but
......
...@@ -62,8 +62,8 @@ typedef struct { ...@@ -62,8 +62,8 @@ typedef struct {
ParsePos pos; ParsePos pos;
int col_inc; int col_inc;
gboolean simple_content : 1; gboolean simple_content;
gboolean error_content : 1; gboolean error_content;
GHashTable *styles; GHashTable *styles;
GHashTable *formats; GHashTable *formats;
MStyle *style; MStyle *style;
......
...@@ -11,8 +11,8 @@ struct _GnmNamedExpr { ...@@ -11,8 +11,8 @@ struct _GnmNamedExpr {
String *name; String *name;
ParsePos pos; ParsePos pos;
GHashTable *dependents; GHashTable *dependents;
gboolean active : 1; unsigned char active;
gboolean builtin : 1; unsigned char builtin;
union { union {
GnmExpr const *expr_tree; GnmExpr const *expr_tree;
FunctionArgs expr_func; FunctionArgs expr_func;
......
...@@ -75,17 +75,17 @@ struct _FormatTemplate { ...@@ -75,17 +75,17 @@ struct _FormatTemplate {
char *description; char *description;
/* what to enable */ /* what to enable */
gboolean number : 1; gboolean number;
gboolean border : 1; gboolean border;
gboolean font : 1; gboolean font;
gboolean patterns : 1; gboolean patterns;
gboolean alignment : 1; gboolean alignment;
struct { struct {
gboolean left : 1; gboolean left;
gboolean right : 1; gboolean right;
gboolean top : 1; gboolean top;
gboolean bottom : 1; gboolean bottom;
} edges; } edges;
/* <private> */ /* <private> */
......
...@@ -31,8 +31,8 @@ typedef struct ...@@ -31,8 +31,8 @@ typedef struct
gint negative_fmt; /* 0 - 3 */ gint negative_fmt; /* 0 - 3 */
gint currency_symbol_index; gint currency_symbol_index;
gint list_element; gint list_element;
gboolean date_has_days : 1; gboolean date_has_days;
gboolean date_has_months : 1; gboolean date_has_months;
} FormatCharacteristics; } FormatCharacteristics;
FormatFamily cell_format_classify (StyleFormat const *fmt, FormatCharacteristics *info); FormatFamily cell_format_classify (StyleFormat const *fmt, FormatCharacteristics *info);
......
...@@ -86,7 +86,7 @@ struct _GnmGraphVector { ...@@ -86,7 +86,7 @@ struct _GnmGraphVector {
Value *value; Value *value;
GnmGraph *graph; GnmGraph *graph;
int id; int id;
gboolean is_header : 1; gboolean is_header;
GnmGraphVector *header; GnmGraphVector *header;
}; };
......
...@@ -44,9 +44,9 @@ struct _ItemBar { ...@@ -44,9 +44,9 @@ struct _ItemBar {
GdkCursor *change_cursor; GdkCursor *change_cursor;
StyleFont *normal_font, *bold_font; StyleFont *normal_font, *bold_font;
GtkWidget *tip; /* Tip for scrolling */ GtkWidget *tip; /* Tip for scrolling */
gboolean dragging : 1; gboolean dragging;
gboolean is_col_header : 1; gboolean is_col_header;
gboolean has_resize_guides : 1; gboolean has_resize_guides;
int indent, cell_width, cell_height; int indent, cell_width, cell_height;
int start_selection; /* Where selection started */ int start_selection; /* Where selection started */
int colrow_being_resized; int colrow_being_resized;
......
...@@ -69,10 +69,10 @@ struct _ItemCursor { ...@@ -69,10 +69,10 @@ struct _ItemCursor {
int cached_x, cached_y, cached_w, cached_h; int cached_x, cached_y, cached_w, cached_h;
int drag_button; int drag_button;
gboolean visible :1; gboolean visible;
gboolean use_color :1; gboolean use_color;
gboolean auto_fill_handle_at_top :1; gboolean auto_fill_handle_at_top;
gboolean auto_fill_handle_at_left :1; gboolean auto_fill_handle_at_left;
GdkPixmap *stipple; GdkPixmap *stipple;
GdkColor color; GdkColor color;
......
...@@ -5,14 +5,14 @@ struct _SheetPrivate { ...@@ -5,14 +5,14 @@ struct _SheetPrivate {
Range unhidden_region; Range unhidden_region;
/* State of menu items */ /* State of menu items */
gboolean enable_showhide_detail : 1; unsigned char enable_showhide_detail;
gboolean recompute_visibility : 1; unsigned char recompute_visibility;
gboolean recompute_spans : 1; unsigned char recompute_spans;
gboolean recompute_max_col_group : 1; unsigned char recompute_max_col_group;
gboolean recompute_max_row_group : 1; unsigned char recompute_max_row_group;
gboolean resize_scrollbar : 1; unsigned char resize_scrollbar;
gboolean resize : 1; unsigned char resize;
CellPos reposition_objects; CellPos reposition_objects;
}; };
......
...@@ -32,19 +32,19 @@ struct _SheetView { ...@@ -32,19 +32,19 @@ struct _SheetView {
CellPos unfrozen_top_left; CellPos unfrozen_top_left;
/* state flags */ /* state flags */
gboolean enable_insert_rows : 1; unsigned char enable_insert_rows;
gboolean enable_insert_cols : 1; unsigned char enable_insert_cols;
gboolean enable_insert_cells : 1; unsigned char enable_insert_cells;
gboolean reposition_selection : 1; unsigned char reposition_selection;
/* TODO : these should be replaced with Dependents when we support /* TODO : these should be replaced with Dependents when we support
* format based dependents * format based dependents
*/ */
gboolean selection_content_changed : 1; unsigned char selection_content_changed;
struct { struct {
gboolean location; unsigned char location;
gboolean content; /* entered content NOT value */ unsigned char content; /* entered content NOT value */
gboolean format; unsigned char format;
} edit_pos_changed; } edit_pos_changed;
guint auto_expr_timer; guint auto_expr_timer;
}; };
......
...@@ -42,12 +42,12 @@ struct _Validation { ...@@ -42,12 +42,12 @@ struct _Validation {
String *title; String *title;
String *msg; String *msg;
GnmExpr const *expr [2]; GnmExpr const *expr [2];
ValidationStyle style; ValidationStyle style;
ValidationType type; ValidationType type;
ValidationOp op; ValidationOp op;
gboolean allow_blank : 1; gboolean allow_blank;
gboolean use_dropdown : 1; gboolean use_dropdown;
}; };
Validation *validation_new (ValidationStyle style, Validation *validation_new (ValidationStyle style,
......
...@@ -38,9 +38,9 @@ struct _Workbook { ...@@ -38,9 +38,9 @@ struct _Workbook {
} iteration; } iteration;
gboolean auto_recalc; gboolean auto_recalc;
gboolean during_destruction : 1; gboolean during_destruction;
gboolean being_reordered : 1; gboolean being_reordered;
gboolean recursive_dirty_enabled : 1; gboolean recursive_dirty_enabled;
}; };
typedef struct { typedef struct {
......
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