![]() |
![]() |
![]() |
GTranslator Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#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
);
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][element-type Gtranslator.View] |
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 |