No issues found
Tool | Failure ID | Location | Function | Message | Data |
---|---|---|---|---|---|
clang-analyzer | no-output-found | e-cal-config-meeting-store.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None | |
clang-analyzer | no-output-found | e-cal-config-meeting-store.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None |
1 /*
2 * e-cal-config-meeting-store.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 "e-cal-config-meeting-store.h"
24
25 #include <shell/e-shell.h>
26 #include <calendar/gui/e-meeting-store.h>
27
28 #define E_CAL_CONFIG_MEETING_STORE_GET_PRIVATE(obj) \
29 (G_TYPE_INSTANCE_GET_PRIVATE \
30 ((obj), E_TYPE_CAL_CONFIG_MEETING_STORE, ECalConfigMeetingStorePrivate))
31
32 struct _ECalConfigMeetingStorePrivate {
33 gint placeholder;
34 };
35
36 G_DEFINE_DYNAMIC_TYPE (
37 ECalConfigMeetingStore,
38 e_cal_config_meeting_store,
39 E_TYPE_EXTENSION)
40
41 static void
42 cal_config_meeting_store_constructed (GObject *object)
43 {
44 EExtension *extension;
45 EExtensible *extensible;
46 EShellSettings *shell_settings;
47 EShell *shell;
48
49 extension = E_EXTENSION (object);
50 extensible = e_extension_get_extensible (extension);
51
52 shell = e_shell_get_default ();
53 shell_settings = e_shell_get_shell_settings (shell);
54
55 g_object_bind_property (
56 shell_settings, "cal-default-reminder-interval",
57 extensible, "default-reminder-interval",
58 G_BINDING_SYNC_CREATE);
59
60 g_object_bind_property (
61 shell_settings, "cal-default-reminder-units",
62 extensible, "default-reminder-units",
63 G_BINDING_SYNC_CREATE);
64
65 g_object_bind_property (
66 shell_settings, "cal-free-busy-template",
67 extensible, "free-busy-template",
68 G_BINDING_SYNC_CREATE);
69
70 g_object_bind_property (
71 shell_settings, "cal-timezone",
72 extensible, "timezone",
73 G_BINDING_SYNC_CREATE);
74
75 g_object_bind_property (
76 shell_settings, "cal-week-start-day",
77 extensible, "week-start-day",
78 G_BINDING_SYNC_CREATE);
79
80 /* Chain up to parent's constructed() method. */
81 G_OBJECT_CLASS (e_cal_config_meeting_store_parent_class)->
82 constructed (object);
83 }
84
85 static void
86 e_cal_config_meeting_store_class_init (ECalConfigMeetingStoreClass *class)
87 {
88 GObjectClass *object_class;
89 EExtensionClass *extension_class;
90
91 g_type_class_add_private (
92 class, sizeof (ECalConfigMeetingStorePrivate));
93
94 object_class = G_OBJECT_CLASS (class);
95 object_class->constructed = cal_config_meeting_store_constructed;
96
97 extension_class = E_EXTENSION_CLASS (class);
98 extension_class->extensible_type = E_TYPE_MEETING_STORE;
99 }
100
101 static void
102 e_cal_config_meeting_store_class_finalize (ECalConfigMeetingStoreClass *class)
103 {
104 }
105
106 static void
107 e_cal_config_meeting_store_init (ECalConfigMeetingStore *extension)
108 {
109 extension->priv = E_CAL_CONFIG_MEETING_STORE_GET_PRIVATE (extension);
110 }
111
112 void
113 e_cal_config_meeting_store_type_register (GTypeModule *type_module)
114 {
115 /* XXX G_DEFINE_DYNAMIC_TYPE declares a static type registration
116 * function, so we have to wrap it with a public function in
117 * order to register types from a separate compilation unit. */
118 e_cal_config_meeting_store_register_type (type_module);
119 }