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

navigator-text-view: add get_view()

parent 4cb4ed9c
......@@ -90,6 +90,7 @@ GSPELL_TYPE_NAVIGATOR
<TITLE>GspellNavigatorTextView</TITLE>
GspellNavigatorTextView
gspell_navigator_text_view_new
gspell_navigator_text_view_get_view
<SUBSECTION Standard>
GSPELL_TYPE_NAVIGATOR_TEXT_VIEW
GspellNavigatorTextViewClass
......
......@@ -136,14 +136,12 @@ gspell_navigator_text_view_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
GspellNavigatorTextViewPrivate *priv;
priv = gspell_navigator_text_view_get_instance_private (GSPELL_NAVIGATOR_TEXT_VIEW (object));
GspellNavigatorTextView *navigator = GSPELL_NAVIGATOR_TEXT_VIEW (object);
switch (prop_id)
{
case PROP_VIEW:
g_value_set_object (value, priv->view);
g_value_set_object (value, gspell_navigator_text_view_get_view (navigator));
break;
default:
......@@ -532,4 +530,21 @@ gspell_navigator_text_view_new (GtkTextView *view)
NULL);
}
/**
* gspell_navigator_text_view_get_view:
* @navigator: a #GspellNavigatorTextView.
*
* Returns: (transfer none): the #GtkTextView.
*/
GtkTextView *
gspell_navigator_text_view_get_view (GspellNavigatorTextView *navigator)
{
GspellNavigatorTextViewPrivate *priv;
g_return_val_if_fail (GSPELL_IS_NAVIGATOR_TEXT_VIEW (navigator), NULL);
priv = gspell_navigator_text_view_get_instance_private (navigator);
return priv->view;
}
/* ex:set ts=8 noet: */
......@@ -45,6 +45,8 @@ struct _GspellNavigatorTextViewClass
GspellNavigator * gspell_navigator_text_view_new (GtkTextView *view);
GtkTextView * gspell_navigator_text_view_get_view (GspellNavigatorTextView *navigator);
G_END_DECLS
#endif /* __GSPELL_NAVIGATOR_TEXT_VIEW_H__ */
......
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