![]() |
![]() |
![]() |
GTranslator Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#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;
GtrApplication * gtr_application_get_default (void
);
Returns the default instance of the application.
Returns : |
the default instance of the application. [transfer none] |
GList * gtr_application_get_views (GtrApplication *app
,gboolean original
,gboolean translated
);
Returns all the views currently present in GtranslationApplication.
|
the GtranslationApplication |
|
TRUE if you want original TextViews. |
|
TRUE if you want translated TextViews. |
Returns : |
a newly allocated list of GtranslationApplication objects. [transfer container] |
GtrWindow * gtr_application_create_window (GtrApplication *app
);
Creates a new GtrWindow and shows it.
|
a GtrApplication |
Returns : |
the GtrWindow to be opened. [transfer none] |
GtrWindow * gtr_application_get_active_window (GtrApplication *app
);
|
a GtrApplication |
Returns : |
the active GtrWindow. [transfer none] |
void gtr_application_register_icon (GtrApplication *app
,const gchar *icon
,const gchar *stock_id
);
Registers a new icon
with the stock_id
.
|
a GtrApplication |
|
the name of the icon |
|
the stock id for the new icon |
GObject * gtr_application_get_translation_memory
(GtrApplication *app
);
Gets the translation memory.
|
a GtrApplication |
Returns : |
Get the translation memory. [transfer none] |