r20728 - gnucash/trunk/src/business/business-gnome - Minor code cleanups in owner list code
Geert Janssens
gjanssens at code.gnucash.org
Wed Jun 1 12:55:14 EDT 2011
Author: gjanssens
Date: 2011-06-01 12:55:14 -0400 (Wed, 01 Jun 2011)
New Revision: 20728
Trac: http://svn.gnucash.org/trac/changeset/20728
Modified:
gnucash/trunk/src/business/business-gnome/gnc-plugin-page-owner-tree.c
Log:
Minor code cleanups in owner list code
Modified: gnucash/trunk/src/business/business-gnome/gnc-plugin-page-owner-tree.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/gnc-plugin-page-owner-tree.c 2011-06-01 16:55:02 UTC (rev 20727)
+++ gnucash/trunk/src/business/business-gnome/gnc-plugin-page-owner-tree.c 2011-06-01 16:55:14 UTC (rev 20728)
@@ -114,10 +114,10 @@
GncPluginPageOwnerTree *page);
/* Command callbacks */
-static void gnc_plugin_page_owner_tree_cmd_new_owner (GtkAction *action, GncPluginPageOwnerTree *plugin_page);
+static void gnc_plugin_page_owner_tree_cmd_new_owner (GtkAction *action, GncPluginPageOwnerTree *page);
static void gnc_plugin_page_owner_tree_cmd_edit_owner (GtkAction *action, GncPluginPageOwnerTree *page);
static void gnc_plugin_page_owner_tree_cmd_delete_owner (GtkAction *action, GncPluginPageOwnerTree *page);
-static void gnc_plugin_page_owner_tree_cmd_view_filter_by (GtkAction *action, GncPluginPageOwnerTree *plugin_page);
+static void gnc_plugin_page_owner_tree_cmd_view_filter_by (GtkAction *action, GncPluginPageOwnerTree *page);
static guint plugin_page_signals[LAST_SIGNAL] = { 0 };
@@ -658,7 +658,10 @@
}
-/* Command callbacks */
+/************************************************************/
+/* Command callbacks */
+/************************************************************/
+
static void
gnc_plugin_page_owner_tree_cmd_new_owner (GtkAction *action, GncPluginPageOwnerTree *page)
{
@@ -701,11 +704,10 @@
gnc_plugin_page_owner_tree_cmd_edit_owner (GtkAction *action, GncPluginPageOwnerTree *page)
{
GncOwner *owner = gnc_plugin_page_owner_tree_get_current_owner (page);
+ if (NULL == owner) return;
ENTER("action %p, page %p", action, page);
- if (NULL == owner) return;
-
switch (owner->type)
{
case GNC_OWNER_NONE :
More information about the gnucash-changes
mailing list