Commit 446cc9f4 authored by Morten Welinder's avatar Morten Welinder

code cleanup.

parent 4cb21c75
2010-08-13 Morten Welinder <terra@gnome.org> 2010-08-13 Morten Welinder <terra@gnome.org>
* src/colrow.c (colrow_state_list_destroy): Make this a function.
* src/commands.c (cmd_set_text_full): Restore check for actual * src/commands.c (cmd_set_text_full): Restore check for actual
changes. Fixes #626797. changes. Fixes #626797.
......
...@@ -337,6 +337,13 @@ colrow_set_single_state (ColRowState *state, ...@@ -337,6 +337,13 @@ colrow_set_single_state (ColRowState *state,
state->visible = info->visible; state->visible = info->visible;
} }
ColRowStateList *
colrow_state_list_destroy (ColRowStateList *list)
{
go_slist_free_custom (list, g_free);
return NULL;
}
ColRowStateList * ColRowStateList *
colrow_get_states (Sheet *sheet, gboolean is_cols, int first, int last) colrow_get_states (Sheet *sheet, gboolean is_cols, int first, int last)
{ {
......
...@@ -102,7 +102,7 @@ ColRowIndexList *colrow_get_index_list (int first, int last, ...@@ -102,7 +102,7 @@ ColRowIndexList *colrow_get_index_list (int first, int last,
ColRowIndexList *list); ColRowIndexList *list);
ColRowIndexList *colrow_index_list_copy (ColRowIndexList *list); ColRowIndexList *colrow_index_list_copy (ColRowIndexList *list);
#define colrow_state_list_destroy(l) (go_slist_free_custom ((l), g_free), NULL) ColRowStateList *colrow_state_list_destroy (ColRowStateList *list);
ColRowStateList *colrow_get_states (Sheet *sheet, gboolean is_cols, ColRowStateList *colrow_get_states (Sheet *sheet, gboolean is_cols,
int first, int last); int first, int last);
......
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