Commit 43c557a9 authored by Pierre Wieser's avatar Pierre Wieser

NactMainTab class is renamed to FMAMainTab

parent 7eb8e8ea
......@@ -107,8 +107,8 @@ fma_config_tool_SOURCES = \
fma-iproperties-tab.h \
fma-ischemes-tab.c \
fma-ischemes-tab.h \
nact-main-tab.c \
nact-main-tab.h \
fma-main-tab.c \
fma-main-tab.h \
nact-main-window.c \
nact-main-window.h \
nact-main-window-def.h \
......
......@@ -43,7 +43,7 @@
#include "fma-application.h"
#include "nact-statusbar.h"
#include "base-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "fma-iaction-tab.h"
#include "fma-icon-chooser.h"
......@@ -181,7 +181,7 @@ fma_iaction_tab_init( FMAIActionTab *instance )
g_debug( "%s: instance=%p (%s)",
thisfn, ( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_ACTION );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_ACTION );
initialize_gtk( instance );
initialize_window( instance );
......@@ -356,7 +356,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAIActio
instance, G_OBJECT_TYPE_NAME( instance ));
enable_tab = ( count_selected == 1 );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_ACTION, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_ACTION, enable_tab );
data = get_iaction_data( instance );
data->on_selection_change = TRUE;
......
......@@ -39,7 +39,7 @@
#include "base-gtk-utils.h"
#include "fma-ibasenames-tab.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-match-list.h"
......@@ -164,7 +164,7 @@ fma_ibasenames_tab_init( FMAIBasenamesTab *instance )
thisfn,
( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_BASENAMES );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_BASENAMES );
initialize_gtk( instance );
initialize_window( instance );
......@@ -249,7 +249,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAIBasen
NULL );
enable_tab = ( context != NULL );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_BASENAMES, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_BASENAMES, enable_tab );
data = get_ibasenames_data( FMA_IBASENAMES_TAB( instance ));
data->on_selection_change = TRUE;
......
......@@ -38,7 +38,7 @@
#include "core/fma-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-match-list.h"
#include "fma-add-capability-dialog.h"
......@@ -152,7 +152,7 @@ fma_icapabilities_tab_init( FMAICapabilitiesTab *instance )
thisfn,
( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_CAPABILITIES );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_CAPABILITIES );
initialize_gtk( instance );
initialize_window( instance );
......@@ -215,7 +215,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAICapab
NULL );
enable_tab = ( context != NULL );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_CAPABILITIES, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_CAPABILITIES, enable_tab );
}
static void
......
......@@ -44,7 +44,7 @@
#include "fma-application.h"
#include "nact-statusbar.h"
#include "base-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "fma-icommand-tab.h"
#include "fma-ischemes-tab.h"
......@@ -190,7 +190,7 @@ fma_icommand_tab_init( FMAICommandTab *instance )
thisfn,
( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_COMMAND );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_COMMAND );
data = get_icommand_data( instance );
data->on_selection_change = FALSE;
data->tokens = NULL;
......@@ -333,7 +333,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAIComma
thisfn, ( void * ) profile, G_OBJECT_TYPE_NAME( profile ));
enable_tab = ( profile != NULL );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_COMMAND, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_COMMAND, enable_tab );
data = get_icommand_data( instance );
data->on_selection_change = TRUE;
......
......@@ -44,7 +44,7 @@
#include "core/fma-settings.h"
#include "base-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "fma-ienvironment-tab.h"
......@@ -214,7 +214,7 @@ fma_ienvironment_tab_init( FMAIEnvironmentTab *instance )
thisfn,
( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_ENVIRONMENT );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_ENVIRONMENT );
initialize_gtk( instance );
initialize_window( instance );
......@@ -375,7 +375,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAIEnvir
NULL );
enable_tab = ( context != NULL );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_ENVIRONMENT, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_ENVIRONMENT, enable_tab );
data = get_ienviron_data( instance );
data->on_selection_change = TRUE;
......
......@@ -38,7 +38,7 @@
#include "core/fma-gtk-utils.h"
#include "base-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "fma-iexecution-tab.h"
......@@ -163,7 +163,7 @@ fma_iexecution_tab_init( FMAIExecutionTab *instance )
thisfn,
( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_EXECUTION );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_EXECUTION );
initialize_window( instance );
data = get_iexecution_data( instance );
......@@ -254,7 +254,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAIExecu
NULL );
enable_tab = ( profile != NULL );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_EXECUTION, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_EXECUTION, enable_tab );
data = get_iexecution_data( instance );
data->on_selection_change = TRUE;
......
......@@ -41,7 +41,7 @@
#include "base-gtk-utils.h"
#include "fma-application.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-match-list.h"
#include "fma-ifolders-tab.h"
......@@ -156,7 +156,7 @@ fma_ifolders_tab_init( FMAIFoldersTab *instance )
thisfn,
( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_FOLDERS );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_FOLDERS );
initialize_gtk( instance );
initialize_window( instance );
......@@ -224,7 +224,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAIFolde
NULL );
enable_tab = ( context != NULL );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_FOLDERS, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_FOLDERS, enable_tab );
button = fma_gtk_utils_find_widget_by_name( GTK_CONTAINER( instance ), "FolderBrowseButton" );
base_gtk_utils_set_editable( G_OBJECT( button ), editable );
......
......@@ -37,7 +37,7 @@
#include "core/fma-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-match-list.h"
#include "fma-imimetypes-tab.h"
......@@ -151,7 +151,7 @@ fma_imimetypes_tab_init( FMAIMimetypesTab *instance )
thisfn,
( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_MIMETYPES );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_MIMETYPES );
initialize_gtk( instance );
initialize_window( instance );
......@@ -227,7 +227,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAIMimet
NULL );
enable_tab = ( context != NULL );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_MIMETYPES, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_MIMETYPES, enable_tab );
}
static GSList *
......
......@@ -42,7 +42,7 @@
#include "base-gtk-utils.h"
#include "fma-iproperties-tab.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
/* private interface data
......@@ -168,7 +168,7 @@ fma_iproperties_tab_init( FMAIPropertiesTab *instance )
thisfn,
( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_PROPERTIES );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_PROPERTIES );
initialize_window( instance );
data = get_iproperties_data( instance );
......@@ -252,7 +252,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAIPrope
g_return_if_fail( !item || FMA_IS_OBJECT_ITEM( item ));
enable_tab = ( count_selected == 1 );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_PROPERTIES, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_PROPERTIES, enable_tab );
data = get_iproperties_data( instance );
data->on_selection_change = TRUE;
......
......@@ -39,7 +39,7 @@
#include "core/fma-gtk-utils.h"
#include "base-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-match-list.h"
#include "fma-add-scheme-dialog.h"
......@@ -155,7 +155,7 @@ fma_ischemes_tab_init( FMAISchemesTab *instance )
thisfn,
( void * ) instance, G_OBJECT_TYPE_NAME( instance ));
nact_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_SCHEMES );
fma_main_tab_init( NACT_MAIN_WINDOW( instance ), TAB_SCHEMES );
initialize_gtk( instance );
initialize_window( instance );
......@@ -223,7 +223,7 @@ on_tree_selection_changed( NactTreeView *tview, GList *selected_items, FMAISchem
NULL );
enable_tab = ( context != NULL );
nact_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_SCHEMES, enable_tab );
fma_main_tab_enable_page( NACT_MAIN_WINDOW( instance ), TAB_SCHEMES, enable_tab );
button = fma_gtk_utils_find_widget_by_name( GTK_CONTAINER( instance ), "AddFromDefaultButton" );
base_gtk_utils_set_editable( G_OBJECT( button ), editable );
......
......@@ -35,19 +35,19 @@
#include "core/fma-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
/**
* nact_main_tab_init:
* fma_main_tab_init:
* @window: the #NactMainWindow.
* @num_page: the page number, starting from zero.
*
* Common initialization of each page of the notebook.
* (provided that the page has itself called nact_main_tab_init())
* (provided that the page has itself called fma_main_tab_init())
*/
void
nact_main_tab_init( NactMainWindow *main_window, gint num_page )
fma_main_tab_init( NactMainWindow *main_window, gint num_page )
{
GtkWidget *notebook;
GtkWidget *page;
......@@ -65,7 +65,7 @@ nact_main_tab_init( NactMainWindow *main_window, gint num_page )
}
/**
* nact_main_tab_enable_page:
* fma_main_tab_enable_page:
* @window: the #NactMainWindow.
* @num_page: the page number, starting from zero.
* @enabled: whether the tab should be set sensitive or not.
......@@ -73,7 +73,7 @@ nact_main_tab_init( NactMainWindow *main_window, gint num_page )
* Set the sensitivity of the tab.
*/
void
nact_main_tab_enable_page( NactMainWindow *window, gint num_page, gboolean enabled )
fma_main_tab_enable_page( NactMainWindow *window, gint num_page, gboolean enabled )
{
GtkWidget *notebook;
GtkWidget *page, *label;
......@@ -88,14 +88,14 @@ nact_main_tab_enable_page( NactMainWindow *window, gint num_page, gboolean enabl
}
/**
* nact_main_tab_is_page_enabled:
* fma_main_tab_is_page_enabled:
* @window: the #NactMainWindow.
* @num_page: the page number, starting from zero.
*
* Returns: %TRUE if the tab is sensitive, %FALSE else.
*/
gboolean
nact_main_tab_is_page_enabled( NactMainWindow *window, gint num_page )
fma_main_tab_is_page_enabled( NactMainWindow *window, gint num_page )
{
gboolean is_sensitive;
GtkWidget *notebook, *page;
......@@ -105,7 +105,7 @@ nact_main_tab_is_page_enabled( NactMainWindow *window, gint num_page )
page = gtk_notebook_get_nth_page( GTK_NOTEBOOK( notebook ), num_page );
is_sensitive = gtk_widget_is_sensitive( page );
g_debug( "nact_main_tab_is_page_enabled: num_page=%d, is_sensitive=%s", num_page, is_sensitive ? "True":"False" );
g_debug( "fma_main_tab_is_page_enabled: num_page=%d, is_sensitive=%s", num_page, is_sensitive ? "True":"False" );
return( is_sensitive );
}
......@@ -27,17 +27,17 @@
* ... and many others (see AUTHORS)
*/
#ifndef __UI_NACT_MAIN_TAB_H__
#define __UI_NACT_MAIN_TAB_H__
#ifndef __UI_FMA_MAIN_TAB_H__
#define __UI_FMA_MAIN_TAB_H__
#include <api/fma-icontext.h>
#include "nact-main-window-def.h"
/**
* SECTION: nact_main_tab
* SECTION: fma_main_tab
* @short_description: Signals and properties.
* @include: ui/nact-main-tab.h
* @include: ui/fma-main-tab.h
*
* Here as defined signals and properties common to all tabs.
*/
......@@ -57,10 +57,10 @@ enum {
TAB_PROPERTIES
};
void nact_main_tab_init ( NactMainWindow *window, gint page );
void nact_main_tab_enable_page ( NactMainWindow *window, gint page, gboolean enabled );
gboolean nact_main_tab_is_page_enabled( NactMainWindow *window, gint page );
void fma_main_tab_init ( NactMainWindow *window, gint page );
void fma_main_tab_enable_page ( NactMainWindow *window, gint page, gboolean enabled );
gboolean fma_main_tab_is_page_enabled( NactMainWindow *window, gint page );
G_END_DECLS
#endif /* __UI_NACT_MAIN_TAB_H__ */
#endif /* __UI_FMA_MAIN_TAB_H__ */
......@@ -52,7 +52,7 @@
#include "fma-ienvironment-tab.h"
#include "fma-iexecution-tab.h"
#include "fma-iproperties-tab.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-menu.h"
#include "nact-statusbar.h"
......
......@@ -39,7 +39,7 @@
#include "base-keysyms.h"
#include "base-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-match-list.h"
......@@ -343,7 +343,7 @@ on_tree_selection_changed( NactTreeView *treeview, GList *selected_items, MatchL
NULL );
enable_tab = ( context != NULL );
nact_main_tab_enable_page( data->window, data->tab_id, enable_tab );
fma_main_tab_enable_page( data->window, data->tab_id, enable_tab );
data->on_selection_change = TRUE;
......
......@@ -39,7 +39,7 @@
#include "fma-application.h"
#include "fma-clipboard.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-menu.h"
#include "nact-menu-edit.h"
......
......@@ -42,7 +42,7 @@
#include "fma-application.h"
#include "nact-statusbar.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-menu.h"
#include "nact-menu-file.h"
......
......@@ -39,7 +39,7 @@
#include "base-keysyms.h"
#include "fma-application.h"
#include "base-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-schemes-list.h"
/* data attached to the treeview widget on initial load
......
......@@ -41,7 +41,7 @@
#include "fma-application.h"
#include "fma-clipboard.h"
#include "base-gtk-utils.h"
#include "nact-main-tab.h"
#include "fma-main-tab.h"
#include "nact-main-window.h"
#include "nact-tree-model.h"
#include "nact-tree-model-priv.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment