[evolution/webkit-composer: 172/181] Add e_msg_composer_get_editor().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 172/181] Add e_msg_composer_get_editor().
- Date: Sun, 10 Feb 2013 12:22:57 +0000 (UTC)
commit 56e9a79080f7b4775af368f2071de459a387ff9a
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Feb 8 09:52:34 2013 -0500
Add e_msg_composer_get_editor().
This is a transitional function which for the moment just calls
e_editor_window_get_editor().
I think we need to get rid of EEditorWindow and just let EMsgComposer
and EMailSignatureEditor pack their own widgets. EEditorWindow assumes
too much about the packing arrangement of its widgets, which just makes
life difficult for subclasses.
composer/e-msg-composer.c | 16 ++++++++++++++++
composer/e-msg-composer.h | 1 +
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 56f3953..2b6e49d 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2454,6 +2454,22 @@ e_msg_composer_new (EShell *shell)
"shell", shell, NULL);
}
+/**
+ * e_msg_composer_get_editor:
+ * @composer: an #EMsgComposer
+ *
+ * Returns @composer's internal #EEditor instance.
+ *
+ * Returns: an #EEditor
+ **/
+EEditor *
+e_msg_composer_get_editor (EMsgComposer *composer)
+{
+ g_return_val_if_fail (E_IS_MSG_COMPOSER (composer), NULL);
+
+ return e_editor_window_get_editor (E_EDITOR_WINDOW (composer));
+}
+
EFocusTracker *
e_msg_composer_get_focus_tracker (EMsgComposer *composer)
{
diff --git a/composer/e-msg-composer.h b/composer/e-msg-composer.h
index bb93bd0..49e77b0 100644
--- a/composer/e-msg-composer.h
+++ b/composer/e-msg-composer.h
@@ -92,6 +92,7 @@ EMsgComposer * e_msg_composer_new_redirect (EShell *shell,
CamelMimeMessage *message,
const gchar *identity_uid,
GCancellable *cancellable);
+EEditor * e_msg_composer_get_editor (EMsgComposer *composer);
EFocusTracker * e_msg_composer_get_focus_tracker
(EMsgComposer *composer);
CamelSession * e_msg_composer_get_session (EMsgComposer *composer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]