[evolution/tabs-rewrite] More bug fixes.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/tabs-rewrite] More bug fixes.
- Date: Mon, 12 Jul 2010 13:00:07 +0000 (UTC)
commit e627765b1d16315b484244c1dc35e345666ff2d4
Author: Srinivasa Ragavan <sragavan gnome org>
Date: Mon Jul 12 18:17:35 2010 +0530
More bug fixes.
mail/e-mail-paned-view.c | 7 ++++---
mail/e-mail-reader.c | 15 +++++++++++++++
mail/e-mail-reader.h | 1 +
modules/mail/e-mail-shell-content.c | 10 +++++++++-
4 files changed, 29 insertions(+), 4 deletions(-)
---
diff --git a/mail/e-mail-paned-view.c b/mail/e-mail-paned-view.c
index 365f6c9..f2314e1 100644
--- a/mail/e-mail-paned-view.c
+++ b/mail/e-mail-paned-view.c
@@ -576,7 +576,8 @@ mail_paned_view_constructed (GObject *object)
priv->formatter = em_format_html_display_new ();
/* Chain up to parent's constructed() method. */
- //G_OBJECT_CLASS (parent_class)->constructed (object);
+ if (G_OBJECT_CLASS (parent_class)->constructed)
+ G_OBJECT_CLASS (parent_class)->constructed (object);
shell_content = E_MAIL_VIEW (object)->content;
shell_view = e_shell_content_get_shell_view (shell_content);
@@ -586,8 +587,6 @@ mail_paned_view_constructed (GObject *object)
web_view = em_format_html_get_web_view (
EM_FORMAT_HTML (priv->formatter));
- e_mail_reader_init (E_MAIL_READER(object));
-
/* Build content widgets. */
container = GTK_WIDGET (object);
@@ -642,6 +641,8 @@ mail_paned_view_constructed (GObject *object)
/* Message list customizations. */
+ e_mail_reader_init_private (E_MAIL_READER(object));
+
reader = E_MAIL_READER (object);
message_list = e_mail_reader_get_message_list (reader);
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index abfbf3b..58abe86 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -2731,6 +2731,21 @@ e_mail_reader_init (EMailReader *reader)
}
void
+e_mail_reader_init_private (EMailReader *reader)
+{
+
+ quark_private = g_quark_from_static_string ("EMailReader-private");
+
+ g_object_set_qdata_full (
+ G_OBJECT (reader), quark_private,
+ g_slice_new0 (EMailReaderPrivate),
+ (GDestroyNotify) mail_reader_private_free);
+ g_signal_connect (
+ reader, "destroy",
+ G_CALLBACK (mail_reader_destroy), NULL);
+}
+
+void
e_mail_reader_changed (EMailReader *reader)
{
g_return_if_fail (E_IS_MAIL_READER (reader));
diff --git a/mail/e-mail-reader.h b/mail/e-mail-reader.h
index 53fcd09..bf44c72 100644
--- a/mail/e-mail-reader.h
+++ b/mail/e-mail-reader.h
@@ -107,6 +107,7 @@ struct _EMailReaderIface {
GType e_mail_reader_get_type (void);
void e_mail_reader_init (EMailReader *reader);
+void e_mail_reader_init_private (EMailReader *reader);
void e_mail_reader_changed (EMailReader *reader);
guint32 e_mail_reader_check_state (EMailReader *reader);
void e_mail_reader_update_actions (EMailReader *reader);
diff --git a/modules/mail/e-mail-shell-content.c b/modules/mail/e-mail-shell-content.c
index abdf8bd..30f82eb 100644
--- a/modules/mail/e-mail-shell-content.c
+++ b/modules/mail/e-mail-shell-content.c
@@ -120,7 +120,15 @@ mail_shell_content_focus_search_results (EShellContent *shell_content)
static GtkActionGroup *
mail_shell_content_get_action_group (EMailReader *reader)
{
- return e_mail_reader_get_action_group (E_MAIL_READER(E_MAIL_SHELL_CONTENT(reader)->view));
+ EShellContent *shell_content;
+ EShellWindow *shell_window;
+ EShellView *shell_view;
+
+ shell_content = E_SHELL_CONTENT (reader);
+ shell_view = e_shell_content_get_shell_view (shell_content);
+ shell_window = e_shell_view_get_shell_window (shell_view);
+
+ return E_SHELL_WINDOW_ACTION_GROUP_MAIL (shell_window);
}
static EMFormatHTML *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]