Commit c5cbbd1f authored by Garrett Regier's avatar Garrett Regier

Fix gobject-introspection scanner warnings

parent be6306f9
......@@ -63,6 +63,7 @@ INST_H_FILES = \
gtr-context.h \
gtr-debug.h \
gtr-header.h \
gtr-message-container.h \
gtr-message-table.h \
gtr-msg.h \
gtr-notebook.h \
......@@ -89,7 +90,6 @@ NOINST_H_FILES = \
gtr-jump-dialog.h \
gtr-language.h \
gtr-languages-fetcher.h \
gtr-message-container.h \
gtr-message-table-model.h \
gtr-plugins-engine.h \
gtr-preferences-dialog.h \
......
......@@ -516,7 +516,8 @@ _gtr_application_save_toolbars_model (GtrApplication * application)
*
* Returns all the views currently present in #GtranslationApplication.
*
* Return value: (transfer container): a newly allocated list of #GtranslationApplication objects
* Return value: (transfer container) (element-type Gtranslator.View):
* a newly allocated list of #GtranslationApplication objects
*/
GList *
gtr_application_get_views (GtrApplication * app,
......
......@@ -69,8 +69,6 @@ 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);
......
......@@ -186,6 +186,13 @@ gtr_header_class_init (GtrHeaderClass * klass)
/* Public methods */
/**
* gtr_header_new: (skip)
* @iter:
* @message:
*
* Return value:
*/
GtrHeader *
gtr_header_new (po_message_iterator_t iter, po_message_t message)
{
......
......@@ -31,6 +31,13 @@ gtr_message_container_default_init (GtrMessageContainerInterface * iface)
{
}
/**
* gtr_message_container_get_message:
* @container:
* @number:
*
* Returns: (transfer none):
*/
GtrMsg *
gtr_message_container_get_message (GtrMessageContainer * container,
gint number)
......
......@@ -283,7 +283,7 @@ gtr_message_table_new (GtkWidget * tab)
/**
* gtr_message_table_populate:
* @table: a #GtrMessageTable
* @messages: a list of #GtrMsg
* @container: a list of #GtrMsg
*
* Populates the #GtrMessageTable with the list of #GtrMsg and
* sort them.
......@@ -322,6 +322,14 @@ gtr_message_table_populate (GtrMessageTable * table, GtrMessageContainer * conta
table->priv->sort_model);
}
/**
* gtr_message_table_navigate:
* @table:
* @navigation:
* @func: (scope call):
*
* Returns: (transfer none):
*/
GtrMsg *
gtr_message_table_navigate (GtrMessageTable * table,
GtrMessageTableNavigation navigation,
......
......@@ -909,7 +909,8 @@ gtr_po_get_write_perms (GtrPo * po)
* gtr_po_get_messages:
* @po: a #GtrPo
*
* Return value: (transfer container): a pointer to the messages list
* Return value: (transfer container) (element-type Gtranslator.Msg):
* a pointer to the messages list
**/
GList *
gtr_po_get_messages (GtrPo * po)
......@@ -919,11 +920,11 @@ gtr_po_get_messages (GtrPo * po)
return po->priv->messages;
}
/* FIXME: this is hack, we should fix it */
/**
* FIXME: this is hack, we should fix it
* gtr_po_set_messages:
* @po: a #GtrPo
* @messages: a pointer to a new messages list.
* @messages: (element-type Gtranslator.Msg): a pointer to a new messages list.
*
* Sets an updated list of messages.
**/
......@@ -939,7 +940,8 @@ gtr_po_set_messages (GtrPo * po, GList * messages)
* gtr_po_get_current_message:
* @po: a #GtrPo
*
* Return value: (transfer none) (element-type GtrMsg): a pointer to the current message
* Return value: (transfer none) (element-type Gtranslator.Msg):
* a pointer to the current message
**/
GList *
gtr_po_get_current_message (GtrPo * po)
......@@ -967,7 +969,8 @@ gtr_po_update_current_message (GtrPo * po, GtrMsg * msg)
* gtr_po_get_domains:
* @po: a #GtrPo
*
* Return value: (transfer none): a pointer to the domains list
* Return value: (transfer none) (element-type utf8):
* a pointer to the domains list
**/
GList *
gtr_po_get_domains (GtrPo * po)
......@@ -976,7 +979,7 @@ gtr_po_get_domains (GtrPo * po)
}
/**
* gtr_po_get_po_file:
* gtr_po_get_po_file: (skip)
* @po: a #GtrPo
*
* Gets the gettext file.
......@@ -993,7 +996,8 @@ gtr_po_get_po_file (GtrPo * po)
* gtr_po_get_next_fuzzy:
* @po: a #GtrPo
*
* Return value: (transfer none): a pointer to the next fuzzy message
* Return value: (transfer none) (element-type Gtranslator.Msg):
* a pointer to the next fuzzy message
**/
GList *
gtr_po_get_next_fuzzy (GtrPo * po)
......@@ -1015,7 +1019,8 @@ gtr_po_get_next_fuzzy (GtrPo * po)
* gtr_po_get_prev_fuzzy:
* @po: a #GtrPo
*
* Return value: (transfer none): a pointer to the previously fuzzy message
* Return value: (transfer none) (element-type Gtranslator.Msg):
* a pointer to the previously fuzzy message
**/
GList *
gtr_po_get_prev_fuzzy (GtrPo * po)
......@@ -1037,7 +1042,8 @@ gtr_po_get_prev_fuzzy (GtrPo * po)
* gtr_po_get_next_untrans:
* @po: a #GtrPo
*
* Return value: (transfer none): a pointer to the next untranslated message
* Return value: (transfer none) (element-type Gtranslator.Msg):
* a pointer to the next untranslated message
**/
GList *
gtr_po_get_next_untrans (GtrPo * po)
......@@ -1059,7 +1065,8 @@ gtr_po_get_next_untrans (GtrPo * po)
* gtr_po_get_prev_untrans:
* @po: a #GtrPo
*
* Return value: (transfer none): a pointer to the previously untranslated
* Return value: (transfer none) (element-type Gtranslator.Msg):
* a pointer to the previously untranslated
* message or NULL if there are not previously untranslated
* message.
**/
......@@ -1082,7 +1089,8 @@ gtr_po_get_prev_untrans (GtrPo * po)
* gtr_po_get_next_fuzzy_or_untrans:
* @po: a #GtrPo
*
* Return value: (transfer none): a pointer to the next fuzzy or untranslated
* Return value: (transfer none) (element-type Gtranslator.Msg):
* a pointer to the next fuzzy or untranslated
* message or NULL if there is not next fuzzy or untranslated
* message.
**/
......@@ -1105,7 +1113,8 @@ gtr_po_get_next_fuzzy_or_untrans (GtrPo * po)
* gtr_po_get_prev_fuzzy_or_untrans:
* @po: a #GtrPo
*
* Return value: (transfer none): a pointer to the previously fuzzy or
* Return value: (transfer none) (element-type Gtranslator.Msg):
* a pointer to the previously fuzzy or
* untranslated message or NULL if there is not previously
* fuzzy or untranslated message.
**/
......@@ -1131,7 +1140,8 @@ gtr_po_get_prev_fuzzy_or_untrans (GtrPo * po)
*
* Gets the message at the given position.
*
* Returns: (transfer none): the message at the given position.
* Returns: (transfer none) (element-type Gtranslator.Msg):
* the message at the given position.
*/
GList *
gtr_po_get_msg_from_number (GtrPo * po, gint number)
......
......@@ -1163,7 +1163,8 @@ gtr_tab_get_active_view (GtrTab * tab)
*
* Returns all the views currently present in #GtranslationTab
*
* Return: (transfer container): a newly allocated list of #GtranslationTab objects
* Returns: (transfer container) (element-type Gtranslator.View):
* a newly allocated list of #GtranslationTab objects
*/
GList *
gtr_tab_get_all_views (GtrTab * tab, gboolean original, gboolean translated)
......
......@@ -1732,8 +1732,8 @@ gtr_window_get_active_tab (GtrWindow * window)
*
* Gets a list of all tabs in the @window or NULL if there is no tab opened.
*
* Returns: (transfer container): a list of all tabs in the @window or NULL if there
* is no tab opened.
* Returns: (transfer container) (element-type Gtranslator.Tab):
* a list of all tabs in the @window or NULL if there is no tab opened.
*/
GList *
gtr_window_get_all_tabs (GtrWindow * window)
......@@ -1858,7 +1858,8 @@ gtr_window_get_active_view (GtrWindow * window)
*
* Returns all the views currently present in #GtranslationWindow
*
* Return value: (transfer container): a newly allocated list of #GtranslationWindow objects
* Return value: (transfer container) (element-type Gtranslator.View):
* a newly allocated list of #GtranslationWindow objects
**/
GList *
gtr_window_get_all_views (GtrWindow * window,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment