Commit e5b51083 authored by Pierre Wieser's avatar Pierre Wieser

nact_menu_xxx are renamed to fma_menu_xxx

parent 60c93ad9
......@@ -69,18 +69,18 @@ fma_config_tool_SOURCES = \
egg-tree-multi-dnd.c \
egg-tree-multi-dnd.h \
main.c \
fma-add-capability-dialog.c \
fma-add-capability-dialog.h \
fma-add-scheme-dialog.c \
fma-add-scheme-dialog.h \
fma-add-capability-dialog.c \
fma-add-capability-dialog.h \
fma-add-scheme-dialog.c \
fma-add-scheme-dialog.h \
fma-application.c \
fma-application.h \
fma-assistant-export.c \
fma-assistant-export.h \
fma-assistant-import.c \
fma-assistant-import.h \
fma-clipboard.c \
fma-clipboard.h \
fma-clipboard.c \
fma-clipboard.h \
fma-confirm-logout.c \
fma-confirm-logout.h \
fma-export-ask.c \
......@@ -89,8 +89,8 @@ fma_config_tool_SOURCES = \
fma-iaction-tab.h \
fma-ibasenames-tab.c \
fma-ibasenames-tab.h \
fma-icapabilities-tab.c \
fma-icapabilities-tab.h \
fma-icapabilities-tab.c \
fma-icapabilities-tab.h \
fma-icommand-tab.c \
fma-icommand-tab.h \
fma-icon-chooser.c \
......@@ -114,14 +114,14 @@ fma_config_tool_SOURCES = \
fma-main-window-def.h \
fma-match-list.c \
fma-match-list.h \
nact-menu.c \
nact-menu.h \
nact-menu-edit.c \
nact-menu-edit.h \
nact-menu-file.c \
nact-menu-file.h \
nact-menu-view.c \
nact-menu-view.h \
fma-menu.c \
fma-menu.h \
fma-menu-edit.c \
fma-menu-edit.h \
fma-menu-file.c \
fma-menu-file.h \
fma-menu-view.c \
fma-menu-view.h \
nact-preferences-editor.c \
nact-preferences-editor.h \
nact-providers-list.c \
......@@ -149,17 +149,17 @@ fma_config_tool_LDADD = \
$(NULL)
actions_files = \
nautilus-actions-config-tool.actions \
fma-ui.actions \
$(NULL)
ui_files = \
fma-add-capability.ui \
fma-add-scheme.ui \
fma-assistant-export.ui \
fma-assistant-import.ui \
fma-assistant-export.ui \
fma-assistant-import.ui \
fma-confirm-logout.ui \
fma-export-ask.ui \
fma-icon-chooser.ui \
fma-icon-chooser.ui \
nact-legend.ui \
fma-main-window.ui \
nact-preferences.ui \
......
......@@ -41,7 +41,7 @@
#include "base-isession.h"
#include "fma-application.h"
#include "fma-main-window.h"
#include "nact-menu.h"
#include "fma-menu.h"
/* private instance data
*/
......@@ -424,7 +424,7 @@ application_startup( GApplication *application )
fma_pivot_set_loadable( FMA_PIVOT( priv->updater ), PIVOT_LOAD_ALL );
/* define the application menu */
nact_menu_app( FMA_APPLICATION( application ));
fma_menu_app( FMA_APPLICATION( application ));
}
/*
......
......@@ -35,7 +35,7 @@
#include "fma-confirm-logout.h"
#include "fma-main-window-def.h"
#include "nact-menu-file.h"
#include "fma-menu-file.h"
/* private instance data
*/
......@@ -298,7 +298,7 @@ on_save_and_quit_clicked( GtkButton *button, FMAConfirmLogout *editor )
g_debug( "%s: button=%p, editor=%p", thisfn, ( void * ) button, ( void * ) editor );
main_window = FMA_MAIN_WINDOW( base_window_get_main_window( BASE_WINDOW( editor )));
nact_menu_file_save_items( main_window );
fma_menu_file_save_items( main_window );
close_dialog( editor, TRUE );
}
......
......@@ -57,7 +57,7 @@
* | on_startup()
* | |
* | +-> fma_updater_new()
* | nact_menu_app()
* | fma_menu_app()
* |
* | on_activate()
* | |
......@@ -81,7 +81,7 @@
* |
* | setup_monitor_pivot()
* | setup_delete_event()
* | nact_menu_win()
* | fma_menu_win()
* | load_items()
* v
* [X] End of initialization process
......
......@@ -54,7 +54,7 @@
#include "fma-iproperties-tab.h"
#include "fma-main-tab.h"
#include "fma-main-window.h"
#include "nact-menu.h"
#include "fma-menu.h"
#include "nact-statusbar.h"
#include "nact-tree-view.h"
#include "fma-confirm-logout.h"
......@@ -663,7 +663,7 @@ fma_main_window_new( FMAApplication *application )
setup_main_ui( window );
setup_treeview( window );
nact_menu_win( window );
fma_menu_win( window );
window->private->clipboard = fma_clipboard_new( window );
window->private->sort_buttons = nact_sort_buttons_new( window );
......
......@@ -41,8 +41,8 @@
#include "fma-clipboard.h"
#include "fma-main-tab.h"
#include "fma-main-window.h"
#include "nact-menu.h"
#include "nact-menu-edit.h"
#include "fma-menu.h"
#include "fma-menu-edit.h"
#include "nact-tree-ieditable.h"
#include "nact-tree-view.h"
......@@ -53,7 +53,7 @@ static gchar *add_ndeletable_msg( const FMAObjectItem *item, gint reason );
static void update_clipboard_counters( FMAMainWindow *window, sMenuData *sdata );
/**
* nact_menu_edit_update_sensitivities:
* fma_menu_edit_update_sensitivities:
* @main_window: the #FMAMainWindow main window.
*
* Update sensitivity of items of the Edit menu.
......@@ -64,7 +64,7 @@ static void update_clipboard_counters( FMAMainWindow *window, sMenuData *sdat
* Menubar rule).
*/
void
nact_menu_edit_update_sensitivities( FMAMainWindow *main_window )
fma_menu_edit_update_sensitivities( FMAMainWindow *main_window )
{
sMenuData *sdata;
gboolean cut_enabled;
......@@ -78,7 +78,7 @@ nact_menu_edit_update_sensitivities( FMAMainWindow *main_window )
FMAObject *selected_item;
gboolean is_clipboard_empty;
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
is_clipboard_empty = ( sdata->clipboard_menus + sdata->clipboard_actions + sdata->clipboard_profiles == 0 );
/* cut requires a non-empty selection
......@@ -90,12 +90,12 @@ nact_menu_edit_update_sensitivities( FMAMainWindow *main_window )
duplicate_enabled &= sdata->are_parents_writable;
cut_enabled = duplicate_enabled;
cut_enabled &= sdata->are_items_writable;
nact_menu_enable_item( main_window, "cut", cut_enabled );
fma_menu_enable_item( main_window, "cut", cut_enabled );
/* copy only requires a non-empty selection */
copy_enabled = sdata->treeview_has_focus || sdata->popup_handler;
copy_enabled &= sdata->count_selected > 0;
nact_menu_enable_item( main_window, "copy", copy_enabled );
fma_menu_enable_item( main_window, "copy", copy_enabled );
/* paste enabled if
* - clipboard is not empty
......@@ -121,7 +121,7 @@ nact_menu_edit_update_sensitivities( FMAMainWindow *main_window )
paste_enabled &= sdata->is_level_zero_writable;
}
}
nact_menu_enable_item( main_window, "paste", paste_enabled );
fma_menu_enable_item( main_window, "paste", paste_enabled );
/* paste into enabled if
* - clipboard is not empty
......@@ -160,26 +160,26 @@ nact_menu_edit_update_sensitivities( FMAMainWindow *main_window )
paste_into_enabled &= sdata->is_level_zero_writable;
}
}
nact_menu_enable_item( main_window, "paste-into", paste_into_enabled );
fma_menu_enable_item( main_window, "paste-into", paste_into_enabled );
/* duplicate items will be duplicated besides each one
* selection must be non-empty
* each parent must be writable
*/
nact_menu_enable_item( main_window, "duplicate", duplicate_enabled );
fma_menu_enable_item( main_window, "duplicate", duplicate_enabled );
/* delete is same that cut
* but items themselves must be writable (because physically deleted)
* this will be checked on delete activated
*/
delete_enabled = cut_enabled;
nact_menu_enable_item( main_window, "delete", delete_enabled );
fma_menu_enable_item( main_window, "delete", delete_enabled );
/* reload items always enabled */
}
/**
* nact_menu_edit_cut:
* fma_menu_edit_cut:
* @main_window: the #FMAMainWindow main window.
*
* Cut objects are installed both in the clipboard and in the deleted list.
......@@ -199,9 +199,9 @@ nact_menu_edit_update_sensitivities( FMAMainWindow *main_window )
* - (tree) remove selected items, unreffing objects
*/
void
nact_menu_edit_cut( FMAMainWindow *main_window )
fma_menu_edit_cut( FMAMainWindow *main_window )
{
static const gchar *thisfn = "nact_menu_edit_cut";
static const gchar *thisfn = "fma_menu_edit_cut";
sMenuData *sdata;
GList *items;
FMAClipboard *clipboard;
......@@ -212,7 +212,7 @@ nact_menu_edit_cut( FMAMainWindow *main_window )
g_debug( "%s: main_window=%p", thisfn, ( void * ) main_window );
g_return_if_fail( main_window && FMA_IS_MAIN_WINDOW( main_window ));
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
items = fma_object_copyref_items( sdata->selected_items );
ndeletables = NULL;
to_delete = get_deletables( sdata->updater, items, &ndeletables );
......@@ -239,7 +239,7 @@ nact_menu_edit_cut( FMAMainWindow *main_window )
}
/**
* nact_menu_edit_copy:
* fma_menu_edit_copy:
* @main_window: the #FMAMainWindow main window.
*
* copies the visible selection
......@@ -250,16 +250,16 @@ nact_menu_edit_cut( FMAMainWindow *main_window )
* - (menu) refresh actions sensitivy (as selection doesn't change)
*/
void
nact_menu_edit_copy( FMAMainWindow *main_window )
fma_menu_edit_copy( FMAMainWindow *main_window )
{
static const gchar *thisfn = "nact_menu_edit_copy";
static const gchar *thisfn = "fma_menu_edit_copy";
sMenuData *sdata;
FMAClipboard *clipboard;
g_debug( "%s: main_window=%p", thisfn, ( void * ) main_window );
g_return_if_fail( main_window && FMA_IS_MAIN_WINDOW( main_window ));
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
clipboard = fma_main_window_get_clipboard( main_window );
fma_clipboard_primary_set( clipboard, sdata->selected_items, CLIPBOARD_MODE_COPY );
......@@ -269,7 +269,7 @@ nact_menu_edit_copy( FMAMainWindow *main_window )
}
/**
* nact_menu_edit_paste:
* fma_menu_edit_paste:
* @main_window: the #FMAMainWindow main window.
*
* pastes the current content of the clipboard at the current position
......@@ -284,9 +284,9 @@ nact_menu_edit_copy( FMAMainWindow *main_window )
* - (menu) unreffing the copy got from clipboard
*/
void
nact_menu_edit_paste( FMAMainWindow *main_window )
fma_menu_edit_paste( FMAMainWindow *main_window )
{
static const gchar *thisfn = "nact_menu_edit_paste";
static const gchar *thisfn = "fma_menu_edit_paste";
sMenuData *sdata;
GList *items;
NactTreeView *view;
......@@ -294,7 +294,7 @@ nact_menu_edit_paste( FMAMainWindow *main_window )
g_debug( "%s: main_window=%p", thisfn, ( void * ) main_window );
g_return_if_fail( main_window && FMA_IS_MAIN_WINDOW( main_window ));
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
items = prepare_for_paste( main_window, sdata );
if( items ){
......@@ -305,7 +305,7 @@ nact_menu_edit_paste( FMAMainWindow *main_window )
}
/**
* nact_menu_edit_paste_into:
* fma_menu_edit_paste_into:
* @main_window: the #FMAMainWindow main window.
*
* pastes the current content of the clipboard as the first child of
......@@ -320,9 +320,9 @@ nact_menu_edit_paste( FMAMainWindow *main_window )
* - (menu) unreffing the copy got from clipboard
*/
void
nact_menu_edit_paste_into( FMAMainWindow *main_window )
fma_menu_edit_paste_into( FMAMainWindow *main_window )
{
static const gchar *thisfn = "nact_menu_edit_paste_into";
static const gchar *thisfn = "fma_menu_edit_paste_into";
sMenuData *sdata;
GList *items;
NactTreeView *view;
......@@ -330,7 +330,7 @@ nact_menu_edit_paste_into( FMAMainWindow *main_window )
g_debug( "%s: main_window=%p", thisfn, ( void * ) main_window );
g_return_if_fail( main_window && FMA_IS_MAIN_WINDOW( main_window ));
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
items = prepare_for_paste( main_window, sdata );
if( items ){
......@@ -343,7 +343,7 @@ nact_menu_edit_paste_into( FMAMainWindow *main_window )
static GList *
prepare_for_paste( FMAMainWindow *window, sMenuData *sdata )
{
static const gchar *thisfn = "nact_menu_edit_prepare_for_paste";
static const gchar *thisfn = "fma_menu_edit_prepare_for_paste";
GList *items, *it;
FMAClipboard *clipboard;
FMAObjectAction *action;
......@@ -377,7 +377,7 @@ prepare_for_paste( FMAMainWindow *window, sMenuData *sdata )
}
/**
* nact_menu_edit_duplicate:
* fma_menu_edit_duplicate:
* @main_window: the #FMAMainWindow main window.
*
* duplicate is just as paste, with the difference that content comes
......@@ -388,9 +388,9 @@ prepare_for_paste( FMAMainWindow *window, sMenuData *sdata )
* items just besides the original ones...
*/
void
nact_menu_edit_duplicate( FMAMainWindow *main_window )
fma_menu_edit_duplicate( FMAMainWindow *main_window )
{
static const gchar *thisfn = "nact_menu_edit_duplicate";
static const gchar *thisfn = "fma_menu_edit_duplicate";
sMenuData *sdata;
FMAObjectAction *action;
GList *items, *it;
......@@ -402,7 +402,7 @@ nact_menu_edit_duplicate( FMAMainWindow *main_window )
g_debug( "%s: main_window=%p", thisfn, ( void * ) main_window );
g_return_if_fail( main_window && FMA_IS_MAIN_WINDOW( main_window ));
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
items = fma_object_copyref_items( sdata->selected_items );
for( it = items ; it ; it = it->next ){
......@@ -430,7 +430,7 @@ nact_menu_edit_duplicate( FMAMainWindow *main_window )
}
/**
* nact_menu_edit_delete:
* fma_menu_edit_delete:
* @main_window: the #FMAMainWindow main window.
*
* deletes the visible selection
......@@ -446,9 +446,9 @@ nact_menu_edit_duplicate( FMAMainWindow *main_window )
* this branch itself be deleted
*/
void
nact_menu_edit_delete( FMAMainWindow *main_window )
fma_menu_edit_delete( FMAMainWindow *main_window )
{
static const gchar *thisfn = "nact_menu_edit_delete";
static const gchar *thisfn = "fma_menu_edit_delete";
sMenuData *sdata;
GList *items;
GList *to_delete;
......@@ -458,7 +458,7 @@ nact_menu_edit_delete( FMAMainWindow *main_window )
g_debug( "%s: main_window=%p", thisfn, ( void * ) main_window );
g_return_if_fail( main_window && FMA_IS_MAIN_WINDOW( main_window ));
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
items = fma_object_copyref_items( sdata->selected_items );
ndeletables = NULL;
to_delete = get_deletables( sdata->updater, items, &ndeletables );
......@@ -577,7 +577,7 @@ update_clipboard_counters( FMAMainWindow *main_window, sMenuData *sdata )
sdata->clipboard_actions = sdata->selected_actions;
sdata->clipboard_profiles = sdata->selected_profiles;
g_debug( "nact_menu_update_clipboard_counters: menus=%d, actions=%d, profiles=%d",
g_debug( "fma_menu_update_clipboard_counters: menus=%d, actions=%d, profiles=%d",
sdata->clipboard_menus, sdata->clipboard_actions, sdata->clipboard_profiles );
g_signal_emit_by_name( main_window, MAIN_SIGNAL_UPDATE_SENSITIVITIES );
......
......@@ -27,27 +27,27 @@
* ... and many others (see AUTHORS)
*/
#ifndef __UI_NACT_MENU_EDIT_H__
#define __UI_NACT_MENU_EDIT_H__
#ifndef __UI_FMA_MENU_EDIT_H__
#define __UI_FMA_MENU_EDIT_H__
#include "fma-main-window-def.h"
G_BEGIN_DECLS
void nact_menu_edit_update_sensitivities( FMAMainWindow *main_window );
void fma_menu_edit_update_sensitivities( FMAMainWindow *main_window );
void nact_menu_edit_cut ( FMAMainWindow *main_window );
void fma_menu_edit_cut ( FMAMainWindow *main_window );
void nact_menu_edit_copy ( FMAMainWindow *main_window );
void fma_menu_edit_copy ( FMAMainWindow *main_window );
void nact_menu_edit_paste ( FMAMainWindow *main_window );
void fma_menu_edit_paste ( FMAMainWindow *main_window );
void nact_menu_edit_paste_into ( FMAMainWindow *main_window );
void fma_menu_edit_paste_into ( FMAMainWindow *main_window );
void nact_menu_edit_duplicate ( FMAMainWindow *main_window );
void fma_menu_edit_duplicate ( FMAMainWindow *main_window );
void nact_menu_edit_delete ( FMAMainWindow *main_window );
void fma_menu_edit_delete ( FMAMainWindow *main_window );
G_END_DECLS
#endif /* __UI_NACT_MENU_EDIT_H__ */
#endif /* __UI_FMA_MENU_EDIT_H__ */
......@@ -44,8 +44,8 @@
#include "nact-statusbar.h"
#include "fma-main-tab.h"
#include "fma-main-window.h"
#include "nact-menu.h"
#include "nact-menu-file.h"
#include "fma-menu.h"
#include "fma-menu-file.h"
#include "nact-tree-ieditable.h"
static FMATimeout st_autosave_prefs_timeout = { 0 };
......@@ -64,29 +64,29 @@ static gboolean autosave_callback( FMAMainWindow *main_window );
static void autosave_destroyed( FMAMainWindow *main_window );
/*
* nact_menu_file_init:
* fma_menu_file_init:
* @main_window: the #FMAMainWindow main window.
*/
void
nact_menu_file_init( FMAMainWindow *main_window )
fma_menu_file_init( FMAMainWindow *main_window )
{
install_autosave( main_window );
}
/**
* nact_menu_file_update_sensitivities:
* fma_menu_file_update_sensitivities:
* @main_window: the #FMAMainWindow main window.
*
* Update sensitivity of items of the File menu.
*/
void
nact_menu_file_update_sensitivities( FMAMainWindow *main_window )
fma_menu_file_update_sensitivities( FMAMainWindow *main_window )
{
static const gchar *thisfn = "nact_menu_file_update_sensitivities";
static const gchar *thisfn = "fma_menu_file_update_sensitivities";
sMenuData *sdata;
gboolean new_item_enabled;
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
/* new menu / new action
* new item will be inserted just before the beginning of selection
......@@ -99,37 +99,37 @@ nact_menu_file_update_sensitivities( FMAMainWindow *main_window )
sdata->is_parent_writable ? "True":"False",
sdata->has_writable_providers ? "True":"False",
new_item_enabled ? "True":"False" );
nact_menu_enable_item( main_window, "new-menu", new_item_enabled );
nact_menu_enable_item( main_window, "new-action", new_item_enabled );
fma_menu_enable_item( main_window, "new-menu", new_item_enabled );
fma_menu_enable_item( main_window, "new-action", new_item_enabled );
/* new profile enabled if selection is relative to only one writable action
* i.e. contains profile(s) of the same action, or only contains one action
* action must be writable
*/
nact_menu_enable_item( main_window, "new-profile",
fma_menu_enable_item( main_window, "new-profile",
sdata->enable_new_profile && sdata->is_action_writable );
/* save enabled if at least one item has been modified
* or level-zero has been resorted and is writable
*/
nact_menu_enable_item( main_window, "save", ( sdata->is_tree_modified ));
fma_menu_enable_item( main_window, "save", ( sdata->is_tree_modified ));
}
/**
* nact_menu_file_new_menu:
* fma_menu_file_new_menu:
* @main_window: the #FMAMainWindow main window.
*
* Triggers File / New menu item.
*/
void
nact_menu_file_new_menu( FMAMainWindow *main_window )
fma_menu_file_new_menu( FMAMainWindow *main_window )
{
sMenuData *sdata;
FMAObjectMenu *menu;
NactTreeView *items_view;
GList *items;
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
menu = fma_object_menu_new_with_defaults();
fma_object_check_status( menu );
fma_updater_check_item_writability_status( sdata->updater, FMA_OBJECT_ITEM( menu ));
......@@ -140,20 +140,20 @@ nact_menu_file_new_menu( FMAMainWindow *main_window )
}
/**
* nact_menu_file_new_action:
* fma_menu_file_new_action:
* @main_window: the #FMAMainWindow main window.
*
* Triggers File / New action item.
*/
void
nact_menu_file_new_action( FMAMainWindow *main_window )
fma_menu_file_new_action( FMAMainWindow *main_window )
{
sMenuData *sdata;
FMAObjectAction *action;
NactTreeView *items_view;
GList *items;
sdata = nact_menu_get_data( main_window );
sdata = fma_menu_get_data( main_window );
action = fma_object_action_new_with_defaults();
fma_object_check_status( action );
fma_updater_check_item_writability_status( sdata->updater, FMA_OBJECT_ITEM( action ));
......@@ -164,13 +164,13 @@ nact_menu_file_new_action( FMAMainWindow *main_window )
}
/**
* nact_menu_file_new_profile:
* fma_menu_file_new_profile:
* @main_window: the #FMAMainWindow main window.
*
* Triggers File / New profile item.
*/
void
nact_menu_file_new_profile( FMAMainWindow *main_window )
fma_menu_file_new_profile( FMAMainWindow *main_window )
{
FMAObjectAction *action;
FMAObjectProfile *profile;
......@@ -197,11 +197,11 @@ nact_menu_file_new_profile( FMAMainWindow *main_window )
}
/**
* nact_menu_file_save_items:
* fma_menu_file_save_items:
* @window: the #FMAMainWindow main window.
*
* Save items.
* This is the same function that nact_menu_file_save(), just
* This is the same function that fma_menu_file_save(), just
* with different arguments.
*
* Synopsis:
......@@ -226,9 +226,9 @@ nact_menu_file_new_profile( FMAMainWindow *main_window )
* - idem if some items cannot be actually rewritten...
*/
void
nact_menu_file_save_items( FMAMainWindow *window )
fma_menu_file_save_items( FMAMainWindow *window )
{
static const gchar *thisfn = "nact_menu_file_save_items";
static const gchar *thisfn = "fma_menu_file_save_items";
sMenuData *sdata;
NactTreeView *items_view;
GList *items, *it;
......@@ -239,7 +239,7 @@ nact_menu_file_save_items( FMAMainWindow *window )
g_debug( "%s: window=%p", thisfn, ( void * ) window );
sdata = nact_menu_get_data( window );
sdata = fma_menu_get_data( window );
/* always write the level zero list of items as the first save phase
* and reset the corresponding modification flag
......@@ -321,7 +321,7 @@ nact_menu_file_save_items( FMAMainWindow *window )
static gboolean
save_item( FMAMainWindow *window, FMAUpdater *updater, FMAObjectItem *item, GSList **messages )
{
static const gchar *thisfn = "nact_menu_file_save_item";
static const gchar *thisfn = "fma_menu_file_save_item";
gboolean ret;
FMAIOProvider *provider_before;
FMAIOProvider *provider_after;
......@@ -371,7 +371,7 @@ save_item( FMAMainWindow *window, FMAUpdater *updater, FMAObjectItem *item, GSLi
}
/*
* nact_menu_file_install_autosave:
* fma_menu_file_install_autosave:
* @main_window: this #FMAMainWindow main window.
*
* Setup the autosave feature and initialize its monitoring.
......@@ -398,7 +398,7 @@ on_autosave_prefs_changed( const gchar *group, const gchar *key, gconstpointer n
static void
on_autosave_prefs_timeout( FMAMainWindow *main_window )
{
static const gchar *thisfn = "nact_menu_file_autosave_prefs_timeout";
static const gchar *thisfn = "fma_menu_file_autosave_prefs_timeout";
gboolean autosave_on;
guint autosave_period;
......@@ -427,11 +427,11 @@ autosave_callback( FMAMainWindow *main_window )
{
NactStatusbar *bar;
const gchar *context = "autosave-context";
g_debug( "nact_menu_file_autosave_callback" );
g_debug( "fma_menu_file_autosave_callback" );
bar = fma_main_window_get_statusbar( main_window );
nact_statusbar_display_status( bar, context, _( "Automatically saving pending modifications..." ));
nact_menu_file_save_items( main_window );
fma_menu_file_save_items( main_window );
nact_statusbar_hide_status( bar, context );
return( TRUE );
......@@ -440,5 +440,5 @@ autosave_callback( FMAMainWindow *main_window )
static void
autosave_destroyed( FMAMainWindow *main_window )
{
g_debug( "nact_menu_file_autosave_destroyed" );
g_debug( "fma_menu_file_autosave_destroyed" );
}
......@@ -27,25 +27,25 @@
* ... and many others (see AUTHORS)
*/
#ifndef __UI_NACT_MENU_FILE_H__
#define __UI_NACT_MENU_FILE_H__
#ifndef __UI_FMA_MENU_FILE_H__
#define __UI_FMA_MENU_FILE_H__
#include "fma-main-window-def.h"
G_BEGIN_DECLS
void nact_menu_file_init ( FMAMainWindow *main_window );
void fma_menu_file_init ( FMAMainWindow *main_window );
void nact_menu_file_update_sensitivities( FMAMainWindow *main_window );
void fma_menu_file_update_sensitivities( FMAMainWindow *main_window );
void nact_menu_file_new_menu ( FMAMainWindow *main_window );
void fma_menu_file_new_menu ( FMAMainWindow *main_window );
void nact_menu_file_new_action ( FMAMainWindow *main_window );
void fma_menu_file_new_action ( FMAMainWindow *main_window );
void nact_menu_file_new_profile ( FMAMainWindow *main_window );
void fma_menu_file_new_profile ( FMAMainWindow *main_window );
void nact_menu_file_save_items ( FMAMainWindow *main_window );
void fma_menu_file_save_items ( FMAMainWindow *main_window );
G_END_DECLS
#endif /* __UI_NACT_MENU_FILE_H__ */
#endif /* __UI_FMA_MENU_FILE_H__ */
......@@ -35,8 +35,8 @@
#include "core/fma-iprefs.h"
#include "fma-main-window.h"
#include "nact-menu.h"
#include "nact-menu-view.h"
#include "fma-menu.h"
#include "fma-menu-view.h"
/* defines the toolbar properties
*/
......@@ -87,36 +87,36 @@ static sNotebookTabsProps *get_notebook_tabs_properties_by_pos( guint pos );
void set_notebook_tabs_position( FMAMainWindow *main_window, guint pos );
/**
* nact_menu_view_init:
* fma_menu_view_init:
* @window: the #FMAMainWindow main window.
*
* Setup the toolbars menu at creation time.
*/
void
nact_menu_view_init( FMAMainWindow *window )
fma_menu_view_init( FMAMainWindow *window )
{
setup_toolbars_submenu( window );
setup_notebook_tab_position_submenu( window );
}
/**
* nact_menu_view_update_sensitivities:
* fma_menu_view_update_sensitivities:
* @window: the #FMAMainWindow main window.
*
* Update sensitivity of items of the View menu.
*/
void
nact_menu_view_update_sensitivities( FMAMainWindow *window )
fma_menu_view_update_sensitivities( FMAMainWindow *window )
{
sMenuData *sdata;
guint count_list;
sdata = nact_menu_get_data( window );
sdata = fma_menu_get_data( window );
/* expand all/collapse all requires at least one item in the list */
count_list = sdata->count_menus + sdata->count_actions + sdata->count_profiles;
nact_menu_enable_item( window, "expand", count_list > 0 );
nact_menu_enable_item( window, "collapse", count_list > 0 );
fma_menu_enable_item( window, "expand", count_list > 0 );
fma_menu_enable_item( window, "collapse", count_list > 0 );
}
/*
......@@ -167,7 +167,7 @@ setup_toolbar( FMAMainWindow *window, GtkBuilder *builder, guint toolbar_id )
static sToolbarProps *
get_toolbar_properties_by_id( guint toolbar_id )