## GtrApplication

GtrApplication

## Synopsis

    #define             GTR_APP
    struct              GtrApplication;
    struct              GtrApplicationClass;
    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);
    void                gtr_application_register_icon       (GtrApplication *app,
                                                             const gchar *icon,
                                                             const gchar *stock_id);

## Description

## Details

### GTR_APP

    #define GTR_APP                         (GTR_APPLICATION (g_application_get_default()))

### struct GtrApplication

    struct GtrApplication {
      GtkApplication base_instance;
    };

### struct GtrApplicationClass

    struct GtrApplicationClass {
      GtkApplicationClass parent_class;
    };

### 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][element-type Gtranslator.View]

### 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_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