mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove unused functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11928 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
18c5787ac8
commit
48eb9e4338
@ -285,46 +285,6 @@ gnc_add_scm_extension (SCM extension)
|
||||
}
|
||||
}
|
||||
|
||||
/******************** Install Menus ********************/
|
||||
|
||||
typedef struct {
|
||||
GtkUIManager *uiMerge;
|
||||
GtkActionGroup *group;
|
||||
guint merge_id;
|
||||
} setup_data;
|
||||
|
||||
static void
|
||||
gnc_extensions_menu_setup_one (ExtensionInfo *ext_info,
|
||||
setup_data *data)
|
||||
{
|
||||
DEBUG("Adding %s/%s [%s] as [%s]\n", ext_info->path, ext_info->ae.label,
|
||||
ext_info->ae.name, ext_info->typeStr);
|
||||
|
||||
gtk_action_group_add_actions(data->group, &ext_info->ae, 1,
|
||||
ext_info->extension);
|
||||
gtk_ui_manager_add_ui(data->uiMerge, data->merge_id, ext_info->path,
|
||||
ext_info->ae.label, ext_info->ae.name,
|
||||
ext_info->type, FALSE);
|
||||
gtk_ui_manager_ensure_update(data->uiMerge);
|
||||
}
|
||||
|
||||
void
|
||||
gnc_extensions_menu_setup (GtkUIManager *uiMerge )
|
||||
{
|
||||
setup_data data;
|
||||
|
||||
ENTER(" ");
|
||||
|
||||
data.uiMerge = uiMerge;
|
||||
data.group = gtk_action_group_new("MainWindowActionsN");
|
||||
gtk_action_group_set_translation_domain(data.group, GETTEXT_PACKAGE);
|
||||
gtk_ui_manager_insert_action_group(uiMerge, data.group, 0);
|
||||
data.merge_id = gtk_ui_manager_new_merge_id(uiMerge);
|
||||
|
||||
g_slist_foreach(extension_list, (GFunc)gnc_extensions_menu_setup_one, &data);
|
||||
LEAVE(" ");
|
||||
}
|
||||
|
||||
/******************** Shutdown ********************/
|
||||
|
||||
void
|
||||
|
@ -51,14 +51,6 @@ void gnc_extension_invoke_cb (SCM extension, SCM window);
|
||||
*/
|
||||
void gnc_add_scm_extension(SCM extension);
|
||||
|
||||
/** This function inserts all of the menu items stored by
|
||||
* gnc_add_scm_extension() into the application menus.
|
||||
*
|
||||
* @param uiMerge The GtkUIManager [GtkUIManager] object to use for
|
||||
* merging.
|
||||
*/
|
||||
void gnc_extensions_menu_setup( GtkUIManager *uiMerge );
|
||||
|
||||
/** This function releases any memory being held by the 'extensions'
|
||||
* code. It is called from the window shutdown code.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user