diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-10 12:50:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-16 09:38:04 +0100 |
commit | 5fb4e35f3454cb49bf5e5f611224216862f6f611 (patch) | |
tree | 09664e0322bf5e4eb3ed608be3964681bd1fc64b /include | |
parent | 997ca80cc9da940adbd59ce83999e4ffaf4f64d0 (diff) |
lokdocview: add edit-changed signal, so toolbar toggle button is in sync
Editing can start by clicking into the widget or by pressing the toggle
button on the toolbar. In the first case the widget should emit a signal,
so the the toggle button's state can be up to date.
In both toggle button <-> LOK widget direction only update the state if
it's not yet up to date to avoid infinite loops.
Change-Id: I84c9e7757cd7cde42a95f67f0cb28f9ad6984e7a
Diffstat (limited to 'include')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitGtk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitGtk.h b/include/LibreOfficeKit/LibreOfficeKitGtk.h index d6f6c3dcb592..77e9118f60bd 100644 --- a/include/LibreOfficeKit/LibreOfficeKitGtk.h +++ b/include/LibreOfficeKit/LibreOfficeKitGtk.h @@ -97,6 +97,7 @@ struct _LOKDocView struct _LOKDocViewClass { GtkScrolledWindowClass parent_class; + void (* edit_changed) (LOKDocView* pView, gboolean was_edit); }; guint lok_docview_get_type (void); |