GeditApp

GeditApp —

Synopsis




#define     GEDIT_APP_CONST                 (obj)
            GeditAppPrivate;
            GeditApp;
enum        GeditLockdownMask;
GeditApp*   gedit_app_get_default           (void);
GeditWindow* gedit_app_create_window        (GeditApp *app,
                                             GdkScreen *screen);
const GList* gedit_app_get_windows          (GeditApp *app);
GeditWindow* gedit_app_get_active_window    (GeditApp *app);
GList*      gedit_app_get_documents         (GeditApp *app);
GList*      gedit_app_get_views             (GeditApp *app);
GeditLockdownMask gedit_app_get_lockdown    (GeditApp *app);

Object Hierarchy


  GObject
   +----GeditApp

Properties


  "lockdown"             GeditLockdownMask     : Read

Description

Details

GEDIT_APP_CONST()

#define GEDIT_APP_CONST(obj)        (G_TYPE_CHECK_INSTANCE_CAST((obj), GEDIT_TYPE_APP, GeditApp const))

obj :

GeditAppPrivate

typedef struct _GeditAppPrivate GeditAppPrivate;


GeditApp

typedef struct _GeditApp GeditApp;


enum GeditLockdownMask

typedef enum
{
	GEDIT_LOCKDOWN_COMMAND_LINE	= 1 << 0,
	GEDIT_LOCKDOWN_PRINTING		= 1 << 1,
	GEDIT_LOCKDOWN_PRINT_SETUP	= 1 << 2,
	GEDIT_LOCKDOWN_SAVE_TO_DISK	= 1 << 3,
	GEDIT_LOCKDOWN_ALL		= 0xF
} GeditLockdownMask;


gedit_app_get_default ()

GeditApp*   gedit_app_get_default           (void);

Returns the GeditApp object. This object is a singleton and represents the running gedit instance.

Returns : the GeditApp pointer

gedit_app_create_window ()

GeditWindow* gedit_app_create_window        (GeditApp *app,
                                             GdkScreen *screen);

Create a new GeditWindow part of app.

app : the GeditApp
screen :
Returns : the new GeditWindow

gedit_app_get_windows ()

const GList* gedit_app_get_windows          (GeditApp *app);

Returns all the windows currently present in GeditApp.

app : the GeditApp
Returns : the list of GeditWindows objects. The list should not be freed

gedit_app_get_active_window ()

GeditWindow* gedit_app_get_active_window    (GeditApp *app);

Retrives the GeditWindow currently active.

app : the GeditApp
Returns : the active GeditWindow

gedit_app_get_documents ()

GList*      gedit_app_get_documents         (GeditApp *app);

Returns all the documents currently open in GeditApp.

app : the GeditApp
Returns : a newly allocated list of GeditDocument objects

gedit_app_get_views ()

GList*      gedit_app_get_views             (GeditApp *app);

Returns all the views currently present in GeditApp.

app : the GeditApp
Returns : a newly allocated list of GeditView objects

gedit_app_get_lockdown ()

GeditLockdownMask gedit_app_get_lockdown    (GeditApp *app);

Gets the lockdown mask (see GeditLockdownMask) for the application. The lockdown mask determines which functions are locked down using the GNOME-wise lockdown GConf keys.

app : a GeditApp
Returns :

Property Details

The "lockdown" property

  "lockdown"             GeditLockdownMask     : Read

The lockdown mask.