2
* Copyright © 2012 Canonical Ltd
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
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
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
* Authored By: Sam Spilsbury <sam.spilsbury@canonical.com>
20
#include "gwd-settings-writable-interface.h"
22
static void gwd_settings_writable_interface_default_init (GWDSettingsWritableInterface *settings_interface);
24
G_DEFINE_INTERFACE (GWDSettingsWritable, gwd_settings_writable_interface, G_TYPE_OBJECT);
26
static void gwd_settings_writable_interface_default_init (GWDSettingsWritableInterface *settings_interface)
31
gwd_settings_writable_freeze_updates (GWDSettingsWritable *settings)
33
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
34
(*iface->freeze_updates) (settings);
38
gwd_settings_writable_thaw_updates (GWDSettingsWritable *settings)
40
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
41
(*iface->thaw_updates) (settings);
45
gwd_settings_writable_shadow_property_changed (GWDSettingsWritable *settings,
46
gdouble active_shadow_radius,
47
gdouble active_shadow_opacity,
48
gdouble active_shadow_offset_x,
49
gdouble active_shadow_offset_y,
50
const gchar *active_shadow_color,
51
gdouble inactive_shadow_radius,
52
gdouble inactive_shadow_opacity,
53
gdouble inactive_shadow_offset_x,
54
gdouble inactive_shadow_offset_y,
55
const gchar *inactive_shadow_color)
57
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
58
return (*iface->shadow_property_changed) (settings,
60
active_shadow_opacity,
61
active_shadow_offset_x,
62
active_shadow_offset_y,
64
inactive_shadow_radius,
65
inactive_shadow_opacity,
66
inactive_shadow_offset_x,
67
inactive_shadow_offset_y,
68
inactive_shadow_color);
72
gwd_settings_writable_use_tooltips_changed (GWDSettingsWritable *settings,
73
gboolean use_tooltips)
75
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
76
return (*iface->use_tooltips_changed) (settings, use_tooltips);
80
gwd_settings_writable_blur_changed (GWDSettingsWritable *settings,
81
const gchar *blur_type)
83
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
84
return (*iface->blur_changed) (settings, blur_type);
88
gwd_settings_writable_metacity_theme_changed (GWDSettingsWritable *settings,
89
gboolean use_metacity_theme,
90
const gchar *metacity_theme)
92
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
93
return (*iface->metacity_theme_changed) (settings, use_metacity_theme, metacity_theme);
97
gwd_settings_writable_opacity_changed (GWDSettingsWritable *settings,
98
gdouble active_opacity,
99
gdouble inactive_opacity,
100
gboolean active_shade_opacity,
101
gboolean inactive_shade_opacity)
103
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
104
return (*iface->opacity_changed) (settings, active_opacity, inactive_opacity, active_shade_opacity, inactive_shade_opacity);
108
gwd_settings_writable_button_layout_changed (GWDSettingsWritable *settings,
109
const gchar *button_layout)
111
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
112
return (*iface->button_layout_changed) (settings, button_layout);
116
gwd_settings_writable_font_changed (GWDSettingsWritable *settings,
117
gboolean titlebar_uses_system_font,
118
const gchar *titlebar_font)
120
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
121
return (*iface->font_changed) (settings, titlebar_uses_system_font, titlebar_font);
125
gwd_settings_writable_titlebar_actions_changed (GWDSettingsWritable *settings,
126
const gchar *action_double_click_titlebar,
127
const gchar *action_middle_click_titlebar,
128
const gchar *action_right_click_titlebar,
129
const gchar *mouse_wheel_action)
131
GWDSettingsWritableInterface *iface = GWD_SETTINGS_WRITABLE_GET_INTERFACE (settings);
132
return (*iface->titlebar_actions_changed) (settings,
133
action_double_click_titlebar,
134
action_middle_click_titlebar,
135
action_right_click_titlebar,