/ gwnotebookcatalog.h / Functions / Description

Functions



gw_notebook_catalog_create

Creates a catalog explorer notebook pane.
GtkWidget * gw_notebook_catalog_create ( GtkWindow *w);
This function creates a catalog explorer notebook pane.

Parameters
w refence to the main window

Result: the catalog explorer notebook pane.
Returns NULL when an error occured..


gw_notebook_catalog_create_and_add

Creates a catalog explorer notebook pane and adds it to the notebook.
GtkWidget * gw_notebook_catalog_create_and_add ( GtkWindow *w, GtkNotebook * parent);
This function creates a catalog explorer notebook pane and adds it to the notebook.

Parameters
w refence to the main window
parent reference to the container

Result: the catalog explorer notebook pane.
Returns NULL when an error occured..


gw_notebook_catalog_get_clist_explorer

Gets the list of the catalog explorer.
GtkCList * gw_notebook_catalog_get_clist_explorer ( GtkWindow *w);
This function gets the list of catalog explorer.

Parameters
w refence to the main window

Result: the list of catalog explorer.
Returns NULL when an error occured..


gw_notebook_catalog_clist_explorer_set_column_title_file

Sets the catalog clist explorer title column for files.
gint gw_notebook_catalog_clist_explorer_set_column_title_file ( void);
This function sets the catalog clist explorer title column for files.

Result: an error code.
Returns 0 when it's done.
Returns -1 when an error occured..


gw_notebook_catalog_clist_explorer_set_column_title_disk

Sets the catalog clist explorer title column for disks.
gint gw_notebook_catalog_clist_explorer_set_column_title_disk ( void);
This function sets the catalog clist explorer title column for disks.

Result: an error code.
Returns 0 when it's done.
Returns -1 when an error occured..


gw_notebook_catalog_ctree_node_get_child

Gets a special child in the node
GtkCTreeNode * gw_notebook_catalog_ctree_node_get_child  ( GtkCTreeNode *node, gchar *name);
This functions gets the child with a special name in the node.


Parameters
node the node to get the child
name the child name

Result: Returns the node when search match.
Returns NULL when don't find child or when an error occured..


gw_notebook_catalog_ctree_node_get_num_children

Gets the number of children in the node
gint gw_notebook_catalog_ctree_node_get_num_children ( GtkCTreeNode *node);
This functions gets the number of children in the node. Number of children is the number of subfolders in the folde.r


Parameters
node the node to get the number of children

Result: the number of chidren.
Returns -1 when an error occured..


gw_notebook_catalog_ctree_destroy_all

Destroys the tree
gint gw_notebook_catalog_ctree_destroy_all ( void);
This function destroys the tree and frees all datas structures used for catalog.
This function is call when the user close a catalog.

Result: Returns 0 when it's done.
Returns -1 when an error occured..


gw_notebook_catalog_get_hpan_position

Gets the horizontal pane position
gint gw_notebook_catalog_get_hpan_position ( GtkWindow *w);
This function gets the horizontal pane position

Result: Returns the horizontal pane position.
Returns -1 when an error occured..