## GladeApp

GladeApp — The central control point of the Glade core.

## Synopsis

    struct              GladeApp;
    GladeApp *          glade_app_new                       (void);
    GType               glade_pointer_mode_get_type         (void);
    GladeApp *          glade_app_get                       (void);
    void                glade_app_set_window                (GtkWidget *window);
    GtkWidget *         glade_app_get_window                (void);
    GladeClipboard *    glade_app_get_clipboard             (void);
    void                glade_app_add_project               (GladeProject *project);
    void                glade_app_remove_project            (GladeProject *project);
    GList *             glade_app_get_projects              (void);
    GKeyFile *          glade_app_get_config                (void);
    gboolean            glade_app_is_project_loaded         (const gchar *project_path);
    GladeProject *      glade_app_get_project_by_path       (const gchar *project_path);
    gint                glade_app_config_save               (void);
    void                glade_app_set_accel_group           (GtkAccelGroup *accel_group);
    const gchar *       glade_app_get_catalogs_dir          (void);
    const gchar *       glade_app_get_modules_dir           (void);
    const gchar *       glade_app_get_pixmaps_dir           (void);
    const gchar *       glade_app_get_locale_dir            (void);

## Object Hierarchy

      GObject
       +----GladeApp

## Signals

      "doc-search"                                     : Run Last
      "signal-editor-created"                          : Run Last
      "widget-adaptor-registered"                      : Run Last

## Description

This main control object is where we try to draw the line between what is the Glade core and what is the main application. The main application must derive from the GladeApp object and create an instance to initialize the Glade core.

## Details

### struct GladeApp

    struct GladeApp;

### glade_app_new ()

    GladeApp *          glade_app_new                       (void);

### glade_pointer_mode_get_type ()

    GType               glade_pointer_mode_get_type         (void);

### glade_app_get ()

    GladeApp *          glade_app_get                       (void);

### glade_app_set_window ()

    void                glade_app_set_window                (GtkWidget *window);

### glade_app_get_window ()

    GtkWidget *         glade_app_get_window                (void);

### glade_app_get_clipboard ()

    GladeClipboard *    glade_app_get_clipboard             (void);

### glade_app_add_project ()

    void                glade_app_add_project               (GladeProject *project);

### glade_app_remove_project ()

    void                glade_app_remove_project            (GladeProject *project);

### glade_app_get_projects ()

    GList *             glade_app_get_projects              (void);

### glade_app_get_config ()

    GKeyFile *          glade_app_get_config                (void);

### glade_app_is_project_loaded ()

    gboolean            glade_app_is_project_loaded         (const gchar *project_path);

### glade_app_get_project_by_path ()

    GladeProject *      glade_app_get_project_by_path       (const gchar *project_path);

Finds an open project with `path`

`project_path` : | The path of an open project
Returns : | A GladeProject, or NULL if no such open project was found

### glade_app_config_save ()

    gint                glade_app_config_save               (void);

Saves the GKeyFile to "`g_get_user_config_dir()`/GLADE_CONFIG_FILENAME"

Return 0 on success.

### glade_app_set_accel_group ()

    void                glade_app_set_accel_group           (GtkAccelGroup *accel_group);

### glade_app_get_catalogs_dir ()

    const gchar *       glade_app_get_catalogs_dir          (void);

### glade_app_get_modules_dir ()

    const gchar *       glade_app_get_modules_dir           (void);

### glade_app_get_pixmaps_dir ()

    const gchar *       glade_app_get_pixmaps_dir           (void);

### glade_app_get_locale_dir ()

    const gchar *       glade_app_get_locale_dir            (void);

## Signal Details

### The `"doc-search"` signal

    void                user_function                      (GladeApp *gladeeditor,
                                                            gchar    *arg1,
                                                            gchar    *arg2,
                                                            gchar    *arg3,
                                                            gpointer  user_data)        : Run Last

Emitted when the glade core requests that a doc-search be performed.

`gladeeditor` : | the GladeEditor which received the signal.
`arg1` : | the (gchar *) book to search or `NULL`
`arg2` : | the (gchar *) page to search or `NULL`
`arg3` : | the (gchar *) search string or `NULL`
`user_data` : | user data set when the signal handler was connected.

### The `"signal-editor-created"` signal

    void                user_function                      (GladeApp *gladeapp,
                                                            GObject  *signal_editor,
                                                            gpointer  user_data)          : Run Last

Emitted when a new signal editor created. A tree view is created in the default handler. Connect your handler before the default handler for setting a custom column or renderer and after it for connecting to the tree view signals

`gladeapp` : | the GladeApp which received the signal.
`signal_editor` : | the new GladeSignalEditor.
`user_data` : | user data set when the signal handler was connected.

### The `"widget-adaptor-registered"` signal

    void                user_function                      (GladeApp *gladeapp,
                                                            GObject  *arg1,
                                                            gpointer  user_data)      : Run Last