[gnome-control-center] wacom: Clean up GSettings instantiation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Clean up GSettings instantiation
- Date: Fri, 26 Aug 2011 10:36:15 +0000 (UTC)
commit dc5c93787b2aac8c67c2c0a66063ad14a2826d3e
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 26 10:44:47 2011 +0100
wacom: Clean up GSettings instantiation
panels/wacom/cc-wacom-panel.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-panel.c b/panels/wacom/cc-wacom-panel.c
index 34e0ca4..0fb4c2a 100644
--- a/panels/wacom/cc-wacom-panel.c
+++ b/panels/wacom/cc-wacom-panel.c
@@ -33,6 +33,10 @@ G_DEFINE_DYNAMIC_TYPE (CcWacomPanel, cc_wacom_panel, CC_TYPE_PANEL)
#define WACOM_PANEL_PRIVATE(o) \
(G_TYPE_INSTANCE_GET_PRIVATE ((o), CC_TYPE_WACOM_PANEL, CcWacomPanelPrivate))
+#define WACOM_SCHEMA "org.gnome.settings-daemon.peripherals.wacom"
+#define WACOM_STYLUS_SCHEMA WACOM_SCHEMA ".stylus"
+#define WACOM_ERASER_SCHEMA WACOM_SCHEMA ".eraser"
+
struct _CcWacomPanelPrivate
{
GtkBuilder *builder;
@@ -293,9 +297,9 @@ gnome_wacom_properties_init (CcWacomPanel *panel)
CcWacomPanelPrivate *priv = CC_WACOM_PANEL(panel)->priv;
GtkComboBox *combo;
- priv->wacom_settings = g_settings_new ("org.gnome.settings-daemon.peripherals.wacom");
- priv->stylus_settings = g_settings_new ("org.gnome.settings-daemon.peripherals.wacom.stylus");
- priv->eraser_settings = g_settings_new ("org.gnome.settings-daemon.peripherals.wacom.eraser");
+ priv->wacom_settings = g_settings_new (WACOM_SCHEMA);
+ priv->stylus_settings = g_settings_new (WACOM_STYLUS_SCHEMA);
+ priv->eraser_settings = g_settings_new (WACOM_ERASER_SCHEMA);
g_signal_connect (WID ("scale-tip-feel"), "value-changed",
G_CALLBACK (tip_feel_value_changed_cb), panel);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]