r15645 - gnucash/trunk/src/gnome - Fix crash in the list-based Delete and Edit operations due to argument-order differences.
Josh Sled
jsled at cvs.gnucash.org
Wed Feb 21 21:35:07 EST 2007
Author: jsled
Date: 2007-02-21 21:35:06 -0500 (Wed, 21 Feb 2007)
New Revision: 15645
Trac: http://svn.gnucash.org/trac/changeset/15645
Modified:
gnucash/trunk/src/gnome/gnc-plugin-page-sx-list.c
Log:
Fix crash in the list-based Delete and Edit operations due to argument-order differences.
Modified: gnucash/trunk/src/gnome/gnc-plugin-page-sx-list.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-sx-list.c 2007-02-22 02:34:15 UTC (rev 15644)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-sx-list.c 2007-02-22 02:35:06 UTC (rev 15645)
@@ -439,7 +439,6 @@
return GNC_PLUGIN_PAGE(page);
}
-
static void
gnc_plugin_page_sx_list_cmd_new(GtkAction *action, GncPluginPageSxList *page)
{
@@ -469,6 +468,12 @@
gnc_ui_scheduled_xaction_editor_dialog_create((SchedXaction*)data, FALSE);
}
+static gpointer
+_argument_reorder_fn(gpointer data, gpointer user_data)
+{
+ return gnc_tree_view_sx_list_get_sx_from_path((GncTreeViewSxList*)user_data, (GtkTreePath*)data);
+}
+
static void
gnc_plugin_page_sx_list_cmd_edit(GtkAction *action, GncPluginPageSxList *page)
{
@@ -486,7 +491,7 @@
}
to_edit = gnc_g_list_map(selected_paths,
- (GncGMapFunc)gnc_tree_view_sx_list_get_sx_from_path,
+ (GncGMapFunc)_argument_reorder_fn,
priv->tree_view);
g_list_foreach(to_edit, (GFunc)_edit_sx, NULL);
g_list_free(to_edit);
@@ -538,7 +543,7 @@
}
to_delete = gnc_g_list_map(selected_paths,
- (GncGMapFunc)gnc_tree_view_sx_list_get_sx_from_path,
+ (GncGMapFunc)_argument_reorder_fn,
priv->tree_view);
{
GList *list;
More information about the gnucash-changes
mailing list