GtrApplication: GTranslator Reference Manual

## GtrApplication GtrApplication |

## Functions

GList * | gtr_application_get_views ()
GtrWindow * | gtr_application_create_window ()
GtrWindow * | gtr_application_get_active_window ()

## Types and Values

#define | GTR_APP

## Description

## Functions

### gtr_application_get_views ()

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

Returns all the views currently present in GtranslationApplication.

#### Parameters

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.

#### Parameters

app | a GtrApplication |

#### Returns

the GtrWindow to be opened.

[transfer none]

### gtr_application_get_active_window ()

    GtrWindow *
    gtr_application_get_active_window (GtrApplication *app);

#### Parameters

app | a GtrApplication |

#### Returns

the active GtrWindow.

[transfer none]

## Types and Values

### GTR_APP

    #define GTR_APP                         (GTR_APPLICATION (g_application_get_default()))