[evolution/webkit-composer: 172/185] Add e_msg_composer_get_editor().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer: 172/185] Add e_msg_composer_get_editor().
- Date: Sat, 13 Apr 2013 15:42:46 +0000 (UTC)
commit 819f90cfa094156899259d73647d869ce0759b91
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(+)
---
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 9ea1bfc..83e133a 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2445,6 +2445,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 6ef99fd..f945be5 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_ref_session (EMsgComposer *composer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]