aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-11-15 01:05:45 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-11-15 01:05:45 +0800
commitcdb09641dc6be772931e5381cdf1e6a824a15684 (patch)
tree6602b0f51acb745f5c56c76276b0fb281acc4493
parent55ed27cd2f509453c9928a21a75871a5fe59fb9f (diff)
downloadgsoc2013-evolution-cdb09641dc6be772931e5381cdf1e6a824a15684.tar
gsoc2013-evolution-cdb09641dc6be772931e5381cdf1e6a824a15684.tar.gz
gsoc2013-evolution-cdb09641dc6be772931e5381cdf1e6a824a15684.tar.bz2
gsoc2013-evolution-cdb09641dc6be772931e5381cdf1e6a824a15684.tar.lz
gsoc2013-evolution-cdb09641dc6be772931e5381cdf1e6a824a15684.tar.xz
gsoc2013-evolution-cdb09641dc6be772931e5381cdf1e6a824a15684.tar.zst
gsoc2013-evolution-cdb09641dc6be772931e5381cdf1e6a824a15684.zip
Build fixes
-rw-r--r--shell/e-shell-settings.c26
-rw-r--r--shell/e-shell.c2
2 files changed, 13 insertions, 15 deletions
diff --git a/shell/e-shell-settings.c b/shell/e-shell-settings.c
index decd9d00b5..5bffa8d026 100644
--- a/shell/e-shell-settings.c
+++ b/shell/e-shell-settings.c
@@ -47,70 +47,68 @@ shell_settings_pspec_for_key (const gchar *property_name,
{
GSettings *settings;
GVariant *v;
- GVariantType *value_type;
GParamSpec *pspec;
const gchar *bad_type;
GError *error = NULL;
- client = g_settings_new (schema);
+ settings = g_settings_new (schema);
v = g_settings_get_value (settings, key);
- value_type = g_variant_get_type (v);
- if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_STRING)) {
+ if (g_variant_is_of_type (v, G_VARIANT_TYPE_STRING)) {
pspec = g_param_spec_string (
property_name, NULL, NULL,
- g_variant_get_string (v),
+ g_variant_get_string (v, NULL),
G_PARAM_READWRITE);
- } else if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_BYTE)) {
+ } else if (g_variant_is_of_type (v, G_VARIANT_TYPE_BYTE)) {
pspec = g_param_spec_int (
property_name, NULL, NULL,
G_MININT, G_MAXINT,
g_variant_get_byte (v),
G_PARAM_READWRITE);
- } else if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_INT16)) {
+ } else if (g_variant_is_of_type (v, G_VARIANT_TYPE_INT16)) {
pspec = g_param_spec_int (
property_name, NULL, NULL,
G_MININT, G_MAXINT,
g_variant_get_int16 (v),
G_PARAM_READWRITE);
- } else if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_UINT16)) {
+ } else if (g_variant_is_of_type (v, G_VARIANT_TYPE_UINT16)) {
pspec = g_param_spec_int (
property_name, NULL, NULL,
G_MININT, G_MAXINT,
g_variant_get_uint16 (v),
G_PARAM_READWRITE);
- } else if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_INT32)) {
+ } else if (g_variant_is_of_type (v, G_VARIANT_TYPE_INT32)) {
pspec = g_param_spec_int (
property_name, NULL, NULL,
G_MININT, G_MAXINT,
g_variant_get_int32 (v),
G_PARAM_READWRITE);
- } else if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_UINT32)) {
+ } else if (g_variant_is_of_type (v, G_VARIANT_TYPE_UINT32)) {
pspec = g_param_spec_int (
property_name, NULL, NULL,
G_MININT, G_MAXINT,
g_variant_get_uint32 (v),
G_PARAM_READWRITE);
- } else if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_INT64)) {
+ } else if (g_variant_is_of_type (v, G_VARIANT_TYPE_INT64)) {
pspec = g_param_spec_int (
property_name, NULL, NULL,
G_MININT, G_MAXINT,
g_variant_get_int64 (v),
G_PARAM_READWRITE);
- } else if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_UINT64)) {
+ } else if (g_variant_is_of_type (v, G_VARIANT_TYPE_UINT64)) {
pspec = g_param_spec_int (
property_name, NULL, NULL,
G_MININT, G_MAXINT,
g_variant_get_uint64 (v),
G_PARAM_READWRITE);
- } else if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_DOUBLE)) {
+ } else if (g_variant_is_of_type (v, G_VARIANT_TYPE_DOUBLE)) {
pspec = g_param_spec_double (
property_name, NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE,
g_variant_get_double (v),
G_PARAM_READWRITE);
- } else if (g_variant_is_of_type (value_type, G_VARIANT_TYPE_BOOLEAN)) {
+ } else if (g_variant_is_of_type (v, G_VARIANT_TYPE_BOOLEAN)) {
pspec = g_param_spec_boolean (
property_name, NULL, NULL,
g_variant_get_boolean (v),
diff --git a/shell/e-shell.c b/shell/e-shell.c
index ac9b8b5835..267c837c3a 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -1197,7 +1197,7 @@ e_shell_init (EShell *shell)
e_shell_settings_install_property_for_key (
"start-offline",
- "org.gnome.evolution.shell"
+ "org.gnome.evolution.shell",
"start-offline");
/*** Session Management ***/