[gnumeric] Renamed GNMUndo*.



commit 4cf379d22367e13d2b07a8a78d6adfe85eb50c85
Author: Jean Brefort <jean brefort normalesup org>
Date:   Mon Feb 20 10:58:45 2012 +0100

    Renamed GNMUndo*.

 ChangeLog  |    5 +++++
 src/undo.c |   24 ++++++++++++------------
 src/undo.h |   30 +++++++++++++++---------------
 3 files changed, 32 insertions(+), 27 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2535a91..620dfe2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/src/undo.c b/src/undo.c
index 2ad3692..5c21f26 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -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);
diff --git a/src/undo.h b/src/undo.h
index 1e17e58..9199855 100644
--- a/src/undo.h
+++ b/src/undo.h
@@ -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;
 };
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]