[evolution/wip/webkit-composer: 233/372] Add e_msg_composer_get_editor().



commit cfb2101f933a6dc9ab7de11f72962839140ae313
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 30875b5..a4eb2fe 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2462,6 +2462,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 2693166..82af452 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]