GtrApplication

## GtrApplication GtrApplication |

## Synopsis

    #define             GTR_APP
    struct              GtrApplication;
    struct              GtrApplicationClass;
    GtrApplication *    gtr_application_get_default         (void);
    GList *             gtr_application_get_views           (GtrApplication *app,
                                                             gboolean original,
                                                             gboolean translated);
    GtrWindow *         gtr_application_create_window       (GtrApplication *app);
    GtrWindow *         gtr_application_get_active_window   (GtrApplication *app);
    const GList *       gtr_application_get_windows         (GtrApplication *app);
    void                gtr_application_register_icon       (GtrApplication *app,
                                                             const gchar *icon,
                                                             const gchar *stock_id);
    GObject *           gtr_application_get_translation_memory
                                                            (GtrApplication *app);
                        GtrApplicationPrivate;

## Description

## Details

### GTR_APP

    #define GTR_APP			        (gtr_application_get_default())

### struct GtrApplication

    struct GtrApplication {
      GtkApplication base_instance;
    };

### struct GtrApplicationClass

    struct GtrApplicationClass {
      GtkApplicationClass parent_class;
    };

### gtr_application_get_default ()

    GtrApplication *    gtr_application_get_default         (void);

Returns the default instance of the application.

Returns : | the default instance of the application. [transfer none]

### gtr_application_get_views ()

    GList *             gtr_application_get_views           (GtrApplication *app,
                                                             gboolean original,
                                                             gboolean translated);

Returns all the views currently present in GtranslationApplication.

`app` : | the GtranslationApplication
`original` : | TRUE if you want original TextViews.
`translated` : | TRUE if you want translated TextViews.
Returns : | a newly allocated list of GtranslationApplication objects. [transfer container]

### gtr_application_create_window ()

    GtrWindow *         gtr_application_create_window       (GtrApplication *app);

Creates a new GtrWindow and shows it.

`app` : | a GtrApplication
Returns : | the GtrWindow to be opened. [transfer none]

### gtr_application_get_active_window ()

    GtrWindow *         gtr_application_get_active_window   (GtrApplication *app);

`app` : | a GtrApplication
Returns : | the active GtrWindow. [transfer none]

### gtr_application_get_windows ()

    const GList *       gtr_application_get_windows         (GtrApplication *app);

### gtr_application_register_icon ()

    void                gtr_application_register_icon       (GtrApplication *app,
                                                             const gchar *icon,
                                                             const gchar *stock_id);

Registers a new `icon` with the `stock_id`.

`app` : | a GtrApplication
`icon` : | the name of the icon
`stock_id` : | the stock id for the new icon

### gtr_application_get_translation_memory ()

    GObject *           gtr_application_get_translation_memory
                                                            (GtrApplication *app);

Gets the translation memory.

`app` : | a GtrApplication
Returns : | Get the translation memory. [transfer none]

### GtrApplicationPrivate

    typedef struct _GtrApplicationPrivate GtrApplicationPrivate;