[evolution/webkit-composer: 167/231] Add e_msg_composer_get_editor().



commit 26020254b40cea5635072434174ca17c2c57d5de
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 7ddbd87..8b5de06 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2443,6 +2443,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 088e848..855d9b8 100644
--- a/composer/e-msg-composer.h
+++ b/composer/e-msg-composer.h
@@ -93,6 +93,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]