No issues found
Tool | Failure ID | Location | Function | Message | Data |
---|---|---|---|---|---|
clang-analyzer | no-output-found | e-mail-config-web-view.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None | |
clang-analyzer | no-output-found | e-mail-config-web-view.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None |
1 /*
2 * e-mail-config-web-view.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
19 #ifdef HAVE_CONFIG_H
20 #include <config.h>
21 #endif
22
23 #include <stdio.h>
24 #include <string.h>
25
26 #include "e-mail-config-web-view.h"
27
28 #include <shell/e-shell.h>
29 #include <misc/e-web-view.h>
30
31 #define E_MAIL_CONFIG_WEB_VIEW_GET_PRIVATE(obj) \
32 (G_TYPE_INSTANCE_GET_PRIVATE \
33 ((obj), E_TYPE_MAIL_CONFIG_WEB_VIEW, EMailConfigWebViewPrivate))
34
35 struct _EMailConfigWebViewPrivate {
36 gint placeholder;
37 };
38
39 G_DEFINE_DYNAMIC_TYPE (
40 EMailConfigWebView,
41 e_mail_config_web_view,
42 E_TYPE_EXTENSION)
43
44 static void
45 mail_config_web_view_constructed (GObject *object)
46 {
47 EShell *shell;
48 EShellSettings *shell_settings;
49 EExtensible *extensible;
50
51 shell = e_shell_get_default ();
52 shell_settings = e_shell_get_shell_settings (shell);
53
54 extensible = e_extension_get_extensible (E_EXTENSION (object));
55
56 g_object_bind_property (
57 shell_settings, "composer-inline-spelling",
58 extensible, "inline-spelling",
59 G_BINDING_SYNC_CREATE);
60
61 g_object_bind_property (
62 shell_settings, "composer-magic-links",
63 extensible, "magic-links",
64 G_BINDING_SYNC_CREATE);
65
66 g_object_bind_property (
67 shell_settings, "composer-magic-smileys",
68 extensible, "magic-smileys",
69 G_BINDING_SYNC_CREATE);
70
71 /* Chain up to parent's constructed() method. */
72 G_OBJECT_CLASS (e_mail_config_web_view_parent_class)->
73 constructed (object);
74 }
75
76 static void
77 e_mail_config_web_view_class_init (EMailConfigWebViewClass *class)
78 {
79 GObjectClass *object_class;
80 EExtensionClass *extension_class;
81
82 g_type_class_add_private (class, sizeof (EMailConfigWebViewPrivate));
83
84 object_class = G_OBJECT_CLASS (class);
85 object_class->constructed = mail_config_web_view_constructed;
86
87 extension_class = E_EXTENSION_CLASS (class);
88 extension_class->extensible_type = E_TYPE_WEB_VIEW;
89 }
90
91 static void
92 e_mail_config_web_view_class_finalize (EMailConfigWebViewClass *class)
93 {
94 }
95
96 static void
97 e_mail_config_web_view_init (EMailConfigWebView *extension)
98 {
99 extension->priv = E_MAIL_CONFIG_WEB_VIEW_GET_PRIVATE (extension);
100 }
101
102 void
103 e_mail_config_web_view_type_register (GTypeModule *type_module)
104 {
105 /* XXX G_DEFINE_DYNAMIC_TYPE declares a static type registration
106 * function, so we have to wrap it with a public function in
107 * order to register types from a separate compilation unit. */
108 e_mail_config_web_view_register_type (type_module);
109 }