[file-roller] uncommented the code used to follow the single click preference
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] uncommented the code used to follow the single click preference
- Date: Mon, 7 Mar 2011 19:36:06 +0000 (UTC)
commit 63cf730ed5df2484663c775ff9f4cee64bcc67ef
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Mar 7 19:48:21 2011 +0100
uncommented the code used to follow the single click preference
src/fr-window.c | 13 -------------
1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 9de18d4..949cb48 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -53,7 +53,6 @@
#include "typedefs.h"
#include "ui.h"
-#undef NAUTILUS_PORTED_TO_GSETTINGS
#define LAST_OUTPUT_SCHEMA_NAME "LastOutput"
#define MAX_HISTORY_LEN 5
#define ACTIVITY_DELAY 100
@@ -4642,11 +4641,7 @@ is_single_click_policy (FrWindow *window)
char *value;
gboolean result;
-#if NAUTILUS_PORTED_TO_GSETTINGS
value = g_settings_get_string (window->priv->settings_nautilus, NAUTILUS_CLICK_POLICY);
-#else
- value = g_strdup ("double");
-#endif
result = (value != NULL) && (strncmp (value, "single", 6) == 0);
g_free (value);
@@ -5014,7 +5009,6 @@ pref_show_field_changed (GSettings *settings,
}
-#if NAUTILUS_PORTED_TO_GSETTINGS
static void
pref_click_policy_changed (GSettings *settings,
const char *key,
@@ -5031,7 +5025,6 @@ pref_click_policy_changed (GSettings *settings,
if (display != NULL)
gdk_display_flush (display);
}
-#endif
static void gh_unref_pixbuf (gpointer key,
@@ -5447,11 +5440,7 @@ fr_window_construct (FrWindow *window)
window->priv->settings_ui = g_settings_new (FILE_ROLLER_SCHEMA_UI);
window->priv->settings_general = g_settings_new (FILE_ROLLER_SCHEMA_GENERAL);
window->priv->settings_dialogs = g_settings_new (FILE_ROLLER_SCHEMA_DIALOGS);
-#if NAUTILUS_PORTED_TO_GSETTINGS
window->priv->settings_nautilus = g_settings_new (NAUTILUS_SCHEMA);
-#else
- window->priv->settings_nautilus = NULL;
-#endif
/* Create the application. */
@@ -6053,12 +6042,10 @@ fr_window_construct (FrWindow *window)
"changed::" PREF_LISTING_USE_MIME_ICONS,
G_CALLBACK (pref_use_mime_icons_changed),
window);
-#if NAUTILUS_PORTED_TO_GSETTINGS
g_signal_connect (window->priv->settings_nautilus,
"changed::" NAUTILUS_CLICK_POLICY,
G_CALLBACK (pref_click_policy_changed),
window);
-#endif
/* Give focus to the list. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]