Skip to content

Commit

Permalink
Move gnc_plugin_page_get_simple_action_group in source file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob-IT committed Nov 5, 2022
1 parent 4fc1283 commit 6e8e5b7
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions gnucash/gnome-utils/gnc-plugin-page.c
Expand Up @@ -984,29 +984,6 @@ gnc_plugin_page_get_ui_description (GncPluginPage *page)
}


const gchar *
gnc_plugin_page_get_simple_action_group_name (GncPluginPage *page)
{
GncPluginPagePrivate *priv;

g_return_val_if_fail (GNC_IS_PLUGIN_PAGE(page), NULL);

priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);

return priv->simple_action_group_name;

// GncPluginPageClass *klass;

// g_return_val_if_fail (GNC_IS_PLUGIN_PAGE(page), NULL);
// klass = GNC_PLUGIN_PAGE_GET_CLASS(page);

// if (klass->actions_name)
// return klass->actions_name;
// else
// return NULL;
}


/* Set an alternate UI for the specified page. This alternate ui
* may only use actions specified in the source for the page. */
void
Expand Down Expand Up @@ -1086,6 +1063,18 @@ gnc_plugin_page_create_action_group (GncPluginPage *page, const gchar *group_nam
return priv->simple_action_group;
}

const gchar *
gnc_plugin_page_get_simple_action_group_name (GncPluginPage *page)
{
GncPluginPagePrivate *priv;

g_return_val_if_fail (GNC_IS_PLUGIN_PAGE(page), NULL);

priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page);

return priv->simple_action_group_name;
}

gboolean
gnc_plugin_page_finish_pending (GncPluginPage *page)
{
Expand Down

0 comments on commit 6e8e5b7

Please sign in to comment.