GeditApp

GeditApp

Synopsis

                    GeditAppPrivate;
struct              GeditApp;
enum                GeditLockdownMask;
GeditWindow *       gedit_app_create_window             (GeditApp *app,
                                                         GdkScreen *screen);
void                gedit_app_set_window_title          (GeditApp *app,
                                                         GeditWindow *window,
                                                         const gchar *title);
GList *             gedit_app_get_main_windows          (GeditApp *app);
GList *             gedit_app_get_documents             (GeditApp *app);
GList *             gedit_app_get_views                 (GeditApp *app);
GeditLockdownMask   gedit_app_get_lockdown              (GeditApp *app);
gboolean            gedit_app_process_window_event      (GeditApp *app,
                                                         GeditWindow *window,
                                                         GdkEvent *event);
gboolean            gedit_app_show_help                 (GeditApp *app,
                                                         GtkWindow *parent,
                                                         const gchar *name,
                                                         const gchar *link_id);

Object Hierarchy

  GObject
   +----GApplication
         +----GtkApplication
               +----GeditApp

Implemented Interfaces

GeditApp implements GActionGroup and GActionMap.

Properties

  "lockdown"                 GeditLockdownMask     : Read

Description

Details

GeditAppPrivate

typedef struct _GeditAppPrivate GeditAppPrivate;

struct GeditApp

struct 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
} GeditLockdownMask;

GEDIT_LOCKDOWN_COMMAND_LINE

GEDIT_LOCKDOWN_PRINTING

GEDIT_LOCKDOWN_PRINT_SETUP

GEDIT_LOCKDOWN_SAVE_TO_DISK


gedit_app_create_window ()

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

Create a new GeditWindow part of app.

app :

the GeditApp

screen :

. [allow-none]

Returns :

the new GeditWindow. [transfer none]

gedit_app_set_window_title ()

void                gedit_app_set_window_title          (GeditApp *app,
                                                         GeditWindow *window,
                                                         const gchar *title);

gedit_app_get_main_windows ()

GList *             gedit_app_get_main_windows          (GeditApp *app);

Returns all GeditWindows currently open in GeditApp. This differs from gtk_application_get_windows() since it does not include the preferences dialog and other auxiliary windows.

app :

the GeditApp

Returns :

a newly allocated list of GeditWindow objects. [element-type Gedit.Window][transfer container]

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. [element-type Gedit.Document][transfer container]

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. [element-type Gedit.View][transfer container]

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

gedit_app_process_window_event ()

gboolean            gedit_app_process_window_event      (GeditApp *app,
                                                         GeditWindow *window,
                                                         GdkEvent *event);

gedit_app_show_help ()

gboolean            gedit_app_show_help                 (GeditApp *app,
                                                         GtkWindow *parent,
                                                         const gchar *name,
                                                         const gchar *link_id);

Property Details

The "lockdown" property

  "lockdown"                 GeditLockdownMask     : Read

The lockdown mask.