evolution-3.6.4/mail/e-mail-message-pane.c

No issues found

Incomplete coverage

Tool Failure ID Location Function Message Data
clang-analyzer no-output-found e-mail-message-pane.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
clang-analyzer no-output-found e-mail-message-pane.c Message(text='Unable to locate XML output from invoke-clang-analyzer') None
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
Failure running clang-analyzer ('no-output-found')
Message
Unable to locate XML output from invoke-clang-analyzer
  1 /*
  2  * e-mail-browser.c
  3  *
  4  * This program is free software; you can redistribute it and/or
  5  * modify it under the terms of the GNU Lesser General Public
  6  * License as published by the Free Software Foundation; either
  7  * version 2 of the License, or (at your option) version 3.
  8  *
  9  * This program is distributed in the hope that it will be useful,
 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 12  * Lesser General Public License for more details.
 13  *
 14  * You should have received a copy of the GNU Lesser General Public
 15  * License along with the program; if not, see <http://www.gnu.org/licenses/>
 16  *
 17  *
 18  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 19  *
 20  */
 21 
 22 #ifdef HAVE_CONFIG_H
 23 #include <config.h>
 24 #endif
 25 
 26 #include "e-mail-message-pane.h"
 27 
 28 #include <string.h>
 29 #include <glib/gi18n.h>
 30 
 31 #include "mail/e-mail-reader.h"
 32 
 33 #define E_MAIL_MESSAGE_PANE_GET_PRIVATE(obj) \
 34 	(G_TYPE_INSTANCE_GET_PRIVATE \
 35 	((obj), E_TYPE_MAIL_MESSAGE_PANE, EMailMessagePanePrivate))
 36 
 37 struct _EMailMessagePanePrivate {
 38 	gint placeholder;
 39 };
 40 
 41 G_DEFINE_TYPE (EMailMessagePane, e_mail_message_pane, E_TYPE_MAIL_PANED_VIEW)
 42 
 43 static void
 44 mail_message_pane_constructed (GObject *object)
 45 {
 46 	/* Chain up to parent's constructed() method. */
 47 	G_OBJECT_CLASS (e_mail_message_pane_parent_class)->constructed (object);
 48 
 49 	gtk_widget_hide (e_mail_reader_get_message_list (E_MAIL_READER (object)));
 50 	e_mail_paned_view_hide_message_list_pane (E_MAIL_PANED_VIEW (object), FALSE);
 51 }
 52 
 53 static gboolean
 54 mail_message_pane_get_preview_visible (EMailView *view)
 55 {
 56 	return TRUE;
 57 }
 58 
 59 static void
 60 mail_message_pane_set_preview_visible (EMailView *view,
 61                                        gboolean preview_visible)
 62 {
 63 	/* Ignore the request. */
 64 }
 65 
 66 static void
 67 e_mail_message_pane_class_init (EMailMessagePaneClass *class)
 68 {
 69 	GObjectClass *object_class;
 70 	EMailViewClass *mail_view_class;
 71 
 72 	g_type_class_add_private (class, sizeof (EMailMessagePanePrivate));
 73 
 74 	object_class = G_OBJECT_CLASS (class);
 75 	object_class->constructed = mail_message_pane_constructed;
 76 
 77 	mail_view_class = E_MAIL_VIEW_CLASS (class);
 78 	mail_view_class->get_preview_visible = mail_message_pane_get_preview_visible;
 79 	mail_view_class->set_preview_visible = mail_message_pane_set_preview_visible;
 80 }
 81 
 82 static void
 83 e_mail_message_pane_init (EMailMessagePane *message_pane)
 84 {
 85 	message_pane->priv = E_MAIL_MESSAGE_PANE_GET_PRIVATE (message_pane);
 86 }
 87 
 88 EMailView *
 89 e_mail_message_pane_new (EShellView *shell_view)
 90 {
 91 	EMailView *widget;
 92 
 93 	g_return_val_if_fail (E_IS_SHELL_VIEW (shell_view), NULL);
 94 
 95 	widget = g_object_new (
 96 		E_TYPE_MAIL_MESSAGE_PANE,
 97 		"shell-view", shell_view, NULL);
 98 
 99 	e_mail_paned_view_set_enable_show_folder (E_MAIL_PANED_VIEW (widget), TRUE);
100 
101 	return widget;
102 }