No issues found
Tool | Failure ID | Location | Function | Message | Data |
---|---|---|---|---|---|
clang-analyzer | no-output-found | e-cal-config-meeting-time-selector.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None | |
clang-analyzer | no-output-found | e-cal-config-meeting-time-selector.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None |
1 /*
2 * e-cal-config-meeting-time-selector.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-time-selector.h"
24
25 #include <shell/e-shell.h>
26 #include <calendar/gui/e-meeting-time-sel.h>
27
28 #define E_CAL_CONFIG_MEETING_TIME_SELECTOR_GET_PRIVATE(obj) \
29 (G_TYPE_INSTANCE_GET_PRIVATE \
30 ((obj), E_TYPE_CAL_CONFIG_MEETING_TIME_SELECTOR, ECalConfigMeetingTimeSelectorPrivate))
31
32 struct _ECalConfigMeetingTimeSelectorPrivate {
33 gint placeholder;
34 };
35
36 G_DEFINE_DYNAMIC_TYPE (
37 ECalConfigMeetingTimeSelector,
38 e_cal_config_meeting_time_selector,
39 E_TYPE_EXTENSION)
40
41 static void
42 cal_config_meeting_time_selector_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-show-week-numbers",
57 extensible, "show-week-numbers",
58 G_BINDING_SYNC_CREATE);
59
60 g_object_bind_property (
61 shell_settings, "cal-use-24-hour-format",
62 extensible, "use-24-hour-format",
63 G_BINDING_SYNC_CREATE);
64
65 g_object_bind_property (
66 shell_settings, "cal-week-start-day",
67 extensible, "week-start-day",
68 G_BINDING_SYNC_CREATE);
69
70 /* Chain up to parent's constructed() method. */
71 G_OBJECT_CLASS (e_cal_config_meeting_time_selector_parent_class)->
72 constructed (object);
73 }
74
75 static void
76 e_cal_config_meeting_time_selector_class_init (ECalConfigMeetingTimeSelectorClass *class)
77 {
78 GObjectClass *object_class;
79 EExtensionClass *extension_class;
80
81 g_type_class_add_private (
82 class, sizeof (ECalConfigMeetingTimeSelectorPrivate));
83
84 object_class = G_OBJECT_CLASS (class);
85 object_class->constructed = cal_config_meeting_time_selector_constructed;
86
87 extension_class = E_EXTENSION_CLASS (class);
88 extension_class->extensible_type = E_TYPE_MEETING_TIME_SELECTOR;
89 }
90
91 static void
92 e_cal_config_meeting_time_selector_class_finalize (ECalConfigMeetingTimeSelectorClass *class)
93 {
94 }
95
96 static void
97 e_cal_config_meeting_time_selector_init (ECalConfigMeetingTimeSelector *extension)
98 {
99 extension->priv =
100 E_CAL_CONFIG_MEETING_TIME_SELECTOR_GET_PRIVATE (extension);
101 }
102
103 void
104 e_cal_config_meeting_time_selector_type_register (GTypeModule *type_module)
105 {
106 /* XXX G_DEFINE_DYNAMIC_TYPE declares a static type registration
107 * function, so we have to wrap it with a public function in
108 * order to register types from a separate compilation unit. */
109 e_cal_config_meeting_time_selector_register_type (type_module);
110 }