Commit 4cf379d2 authored by Jean Bréfort's avatar Jean Bréfort

Renamed GNMUndo*.

parent ffde64a1
2012-02-20 Jean Brefort <jean.brefort@normalesup.org>
* src/undo.c: rename GNMUndo* to GnmUndo*.
* src/undo.h: ditto.
2012-02-11 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/sstest.c (test_random_randnorm): new
......
......@@ -42,7 +42,7 @@ static GObjectClass *gnm_undo_colrow_restore_state_group_parent_class;
static void
gnm_undo_colrow_restore_state_group_finalize (GObject *o)
{
GNMUndoColrowRestoreStateGroup *ua = (GNMUndoColrowRestoreStateGroup *)o;
GnmUndoColrowRestoreStateGroup *ua = (GnmUndoColrowRestoreStateGroup *)o;
colrow_state_group_destroy (ua->saved_state);
ua->saved_state = NULL;
......@@ -55,7 +55,7 @@ gnm_undo_colrow_restore_state_group_finalize (GObject *o)
static void
gnm_undo_colrow_restore_state_group_undo (GOUndo *u, G_GNUC_UNUSED gpointer data)
{
GNMUndoColrowRestoreStateGroup *ua = (GNMUndoColrowRestoreStateGroup *)u;
GnmUndoColrowRestoreStateGroup *ua = (GnmUndoColrowRestoreStateGroup *)u;
colrow_restore_state_group (ua->sheet, ua->is_cols, ua->selection, ua->saved_state);
}
......@@ -72,7 +72,7 @@ gnm_undo_colrow_restore_state_group_class_init (GObjectClass *gobject_class)
}
GSF_CLASS (GNMUndoColrowRestoreStateGroup, gnm_undo_colrow_restore_state_group,
GSF_CLASS (GnmUndoColrowRestoreStateGroup, gnm_undo_colrow_restore_state_group,
gnm_undo_colrow_restore_state_group_class_init, NULL, GO_TYPE_UNDO)
/**
......@@ -86,7 +86,7 @@ gnm_undo_colrow_restore_state_group_new (Sheet *sheet, gboolean is_cols,
ColRowIndexList *selection,
ColRowStateGroup *saved_state)
{
GNMUndoColrowRestoreStateGroup *ua = g_object_new (GNM_TYPE_UNDO_COLROW_RESTORE_STATE_GROUP, NULL);
GnmUndoColrowRestoreStateGroup *ua = g_object_new (GNM_TYPE_UNDO_COLROW_RESTORE_STATE_GROUP, NULL);
ua->sheet = sheet;
ua->is_cols = is_cols;
......@@ -103,7 +103,7 @@ static GObjectClass *gnm_undo_colrow_set_sizes_parent_class;
static void
gnm_undo_colrow_set_sizes_finalize (GObject *o)
{
GNMUndoColrowSetSizes *ua = (GNMUndoColrowSetSizes *)o;
GnmUndoColrowSetSizes *ua = (GnmUndoColrowSetSizes *)o;
colrow_index_list_destroy (ua->selection);
ua->selection = NULL;
......@@ -114,7 +114,7 @@ gnm_undo_colrow_set_sizes_finalize (GObject *o)
static void
gnm_undo_colrow_set_sizes_undo (GOUndo *u, G_GNUC_UNUSED gpointer data)
{
GNMUndoColrowSetSizes *ua = (GNMUndoColrowSetSizes *)u;
GnmUndoColrowSetSizes *ua = (GnmUndoColrowSetSizes *)u;
ColRowStateGroup *group;
group = colrow_set_sizes (ua->sheet, ua->is_cols, ua->selection, ua->new_size,
......@@ -134,7 +134,7 @@ gnm_undo_colrow_set_sizes_class_init (GObjectClass *gobject_class)
}
GSF_CLASS (GNMUndoColrowSetSizes, gnm_undo_colrow_set_sizes,
GSF_CLASS (GnmUndoColrowSetSizes, gnm_undo_colrow_set_sizes,
gnm_undo_colrow_set_sizes_class_init, NULL, GO_TYPE_UNDO)
/**
......@@ -150,7 +150,7 @@ gnm_undo_colrow_set_sizes_new (Sheet *sheet, gboolean is_cols,
ColRowIndexList *selection,
int new_size, GnmRange const *r)
{
GNMUndoColrowSetSizes *ua;
GnmUndoColrowSetSizes *ua;
g_return_val_if_fail (selection != NULL || (r != NULL && new_size == -1), NULL);
......@@ -191,7 +191,7 @@ static GObjectClass *gnm_undo_filter_set_condition_parent_class;
static void
gnm_undo_filter_set_condition_finalize (GObject *o)
{
GNMUndoFilterSetCondition *ua = (GNMUndoFilterSetCondition *)o;
GnmUndoFilterSetCondition *ua = (GnmUndoFilterSetCondition *)o;
gnm_filter_condition_free (ua->cond);
ua->cond = NULL;
......@@ -220,7 +220,7 @@ cb_filter_set_condition_undo_set_pb (SheetControl *control, char *text)
static void
gnm_undo_filter_set_condition_undo (GOUndo *u, G_GNUC_UNUSED gpointer data)
{
GNMUndoFilterSetCondition *ua = (GNMUndoFilterSetCondition *)u;
GnmUndoFilterSetCondition *ua = (GnmUndoFilterSetCondition *)u;
gint count = 0;
char const *format;
char *text;
......@@ -275,7 +275,7 @@ gnm_undo_filter_set_condition_class_init (GObjectClass *gobject_class)
}
GSF_CLASS (GNMUndoFilterSetCondition, gnm_undo_filter_set_condition,
GSF_CLASS (GnmUndoFilterSetCondition, gnm_undo_filter_set_condition,
gnm_undo_filter_set_condition_class_init, NULL, GO_TYPE_UNDO)
/**
......@@ -291,7 +291,7 @@ gnm_undo_filter_set_condition_new (GnmFilter *filter, unsigned i,
GnmFilterCondition *cond,
gboolean retrieve_from_filter)
{
GNMUndoFilterSetCondition *ua;
GnmUndoFilterSetCondition *ua;
g_return_val_if_fail (filter != NULL, NULL);
g_return_val_if_fail (i < filter->fields->len , NULL);
......
......@@ -14,15 +14,15 @@ G_BEGIN_DECLS
/* ------------------------------------------------------------------------- */
#define GNM_TYPE_UNDO_COLROW_RESTORE_STATE_GROUP (gnm_undo_colrow_restore_state_group_get_type ())
#define GNM_UNDO_COLROW_RESTORE_STATE_GROUP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_TYPE_UNDO_COLROW_RESTORE_STATE_GROUP, GNMUndoColrowRestoreStateGroup))
#define GNM_UNDO_COLROW_RESTORE_STATE_GROUP(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_TYPE_UNDO_COLROW_RESTORE_STATE_GROUP, GnmUndoColrowRestoreStateGroup))
#define GNM_IS_UNDO_COLROW_RESTORE_STATE_GROUP(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_TYPE_UNDO_COLROW_RESTORE_STATE_GROUP))
GType gnm_undo_colrow_restore_state_group_get_type (void);
typedef struct _GNMUndoColrowRestoreStateGroup GNMUndoColrowRestoreStateGroup;
typedef struct _GNMUndoColrowRestoreStateGroupClass GNMUndoColrowRestoreStateGroupClass;
typedef struct _GnmUndoColrowRestoreStateGroup GnmUndoColrowRestoreStateGroup;
typedef struct _GnmUndoColrowRestoreStateGroupClass GnmUndoColrowRestoreStateGroupClass;
struct _GNMUndoColrowRestoreStateGroup {
struct _GnmUndoColrowRestoreStateGroup {
GOUndo base;
Sheet *sheet;
gboolean is_cols;
......@@ -30,7 +30,7 @@ struct _GNMUndoColrowRestoreStateGroup {
ColRowStateGroup *saved_state;
};
struct _GNMUndoColrowRestoreStateGroupClass {
struct _GnmUndoColrowRestoreStateGroupClass {
GOUndoClass base;
};
......@@ -41,15 +41,15 @@ GOUndo *gnm_undo_colrow_restore_state_group_new (Sheet *sheet, gboolean is_cols,
/* ------------------------------------------------------------------------- */
#define GNM_TYPE_UNDO_COLROW_SET_SIZES (gnm_undo_colrow_set_sizes_get_type ())
#define GNM_UNDO_COLROW_SET_SIZES(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_TYPE_UNDO_COLROW_SET_SIZES, GNMUndoColrowSetSizes))
#define GNM_UNDO_COLROW_SET_SIZES(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_TYPE_UNDO_COLROW_SET_SIZES, GnmUndoColrowSetSizes))
#define GNM_IS_UNDO_COLROW_SET_SIZES(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_TYPE_UNDO_COLROW_SET_SIZES))
GType gnm_undo_colrow_set_sizes_get_type (void);
typedef struct _GNMUndoColrowSetSizes GNMUndoColrowSetSizes;
typedef struct _GNMUndoColrowSetSizesClass GNMUndoColrowSetSizesClass;
typedef struct _GnmUndoColrowSetSizes GnmUndoColrowSetSizes;
typedef struct _GnmUndoColrowSetSizesClass GnmUndoColrowSetSizesClass;
struct _GNMUndoColrowSetSizes {
struct _GnmUndoColrowSetSizes {
GOUndo base;
Sheet *sheet;
gboolean is_cols;
......@@ -57,7 +57,7 @@ struct _GNMUndoColrowSetSizes {
int new_size, from, to;
};
struct _GNMUndoColrowSetSizesClass {
struct _GnmUndoColrowSetSizesClass {
GOUndoClass base;
};
......@@ -68,22 +68,22 @@ GOUndo *gnm_undo_colrow_set_sizes_new (Sheet *sheet, gboolean is_cols,
/* ------------------------------------------------------------------------- */
#define GNM_TYPE_UNDO_FILTER_SET_CONDITION (gnm_undo_filter_set_condition_get_type ())
#define GNM_UNDO_FILTER_SET_CONDITION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_TYPE_UNDO_FILTER_SET_CONDITION, GNMUndoFilterSetCondition))
#define GNM_UNDO_FILTER_SET_CONDITION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNM_TYPE_UNDO_FILTER_SET_CONDITION, GnmUndoFilterSetCondition))
#define GNM_IS_UNDO_FILTER_SET_CONDITION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNM_TYPE_UNDO_FILTER_SET_CONDITION))
GType gnm_undo_filter_set_condition_get_type (void);
typedef struct _GNMUndoFilterSetCondition GNMUndoFilterSetCondition;
typedef struct _GNMUndoFilterSetConditionClass GNMUndoFilterSetConditionClass;
typedef struct _GnmUndoFilterSetCondition GnmUndoFilterSetCondition;
typedef struct _GnmUndoFilterSetConditionClass GnmUndoFilterSetConditionClass;
struct _GNMUndoFilterSetCondition {
struct _GnmUndoFilterSetCondition {
GOUndo base;
GnmFilter *filter;
unsigned i;
GnmFilterCondition *cond;
};
struct _GNMUndoFilterSetConditionClass {
struct _GnmUndoFilterSetConditionClass {
GOUndoClass base;
};
......
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