[file-roller] the click_policy setting returns an integer instead of a string
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] the click_policy setting returns an integer instead of a string
- Date: Mon, 2 Aug 2010 14:53:43 +0000 (UTC)
commit d2b7d612ab449b26d84ad860f2b028b5e4ce0fb0
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Aug 2 16:49:05 2010 +0200
the click_policy setting returns an integer instead of a string
src/fr-window.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index c7a0d27..6990482 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -4573,14 +4573,10 @@ fr_window_delete_event_cb (GtkWidget *caller,
static gboolean
is_single_click_policy (FrWindow *window)
{
- char *value;
- gboolean result = FALSE;
+ int click_policy;
- value = g_settings_get_enum (window->priv->settings_nautilus, PREF_NAUTILUS_CLICK_POLICY);
- result = (value != NULL) && (strncmp (value, "single", 6) == 0);
- g_free (value);
-
- return result;
+ click_policy = g_settings_get_enum (window->priv->settings_nautilus, PREF_NAUTILUS_CLICK_POLICY);
+ return click_policy == 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]