Commit ce177981 authored by Sébastien Wilmet's avatar Sébastien Wilmet

checker-dialog: add get_spell_navigator()

parent 76fa0655
......@@ -67,6 +67,7 @@ GspellTextViewClass
<TITLE>GspellCheckerDialog</TITLE>
GspellCheckerDialog
gspell_checker_dialog_new
gspell_checker_dialog_get_spell_navigator
<SUBSECTION Standard>
GSPELL_TYPE_CHECKER_DIALOG
</SECTION>
......
......@@ -290,14 +290,12 @@ gspell_checker_dialog_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
GspellCheckerDialogPrivate *priv;
priv = gspell_checker_dialog_get_instance_private (GSPELL_CHECKER_DIALOG (object));
GspellCheckerDialog *dialog = GSPELL_CHECKER_DIALOG (object);
switch (prop_id)
{
case PROP_SPELL_NAVIGATOR:
g_value_set_object (value, priv->navigator);
g_value_set_object (value, gspell_checker_dialog_get_spell_navigator (dialog));
break;
default:
......@@ -719,4 +717,21 @@ gspell_checker_dialog_new (GtkWindow *parent,
NULL);
}
/**
* gspell_checker_dialog_get_spell_navigator:
* @dialog: a #GspellCheckerDialog.
*
* Returns: (transfer none): the #GspellNavigator used.
*/
GspellNavigator *
gspell_checker_dialog_get_spell_navigator (GspellCheckerDialog *dialog)
{
GspellCheckerDialogPrivate *priv;
g_return_val_if_fail (GSPELL_IS_CHECKER_DIALOG (dialog), NULL);
priv = gspell_checker_dialog_get_instance_private (dialog);
return priv->navigator;
}
/* ex:set ts=8 noet: */
......@@ -43,8 +43,10 @@ struct _GspellCheckerDialogClass
gpointer padding[8];
};
GtkWidget * gspell_checker_dialog_new (GtkWindow *parent,
GspellNavigator *navigator);
GtkWidget * gspell_checker_dialog_new (GtkWindow *parent,
GspellNavigator *navigator);
GspellNavigator * gspell_checker_dialog_get_spell_navigator (GspellCheckerDialog *dialog);
G_END_DECLS
......
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