[nautilus] eel: remove eel_g_settings_add_auto_* functions



commit c1fa2a49e02552a2fb334f7cb766a32f0c201ad1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Jan 30 15:54:36 2011 -0500

    eel: remove eel_g_settings_add_auto_* functions

 eel/eel-glib-extensions.c |  106 ---------------------------------------------
 eel/eel-glib-extensions.h |   12 -----
 2 files changed, 0 insertions(+), 118 deletions(-)
---
diff --git a/eel/eel-glib-extensions.c b/eel/eel-glib-extensions.c
index 77810e3..beb9d71 100644
--- a/eel/eel-glib-extensions.c
+++ b/eel/eel-glib-extensions.c
@@ -727,112 +727,6 @@ eel_remove_weak_pointer (gpointer pointer_location)
 }
 
 static void
-update_auto_boolean (GSettings   *settings,
-		     const gchar *key,
-		     gpointer     user_data)
-{
-	int *storage = user_data;
-
-	*storage = g_settings_get_boolean (settings, key);
-}
-
-void
-eel_g_settings_add_auto_boolean (GSettings *settings,
-				 const char *key,
-				 gboolean *storage)
-{
-	char *signal;
-
-	*storage = g_settings_get_boolean (settings, key);
-	signal = g_strconcat ("changed::", key, NULL);
-	g_signal_connect (settings, signal,
-			  G_CALLBACK(update_auto_boolean),
-			  storage);
-
-	g_free (signal);
-}
-
-static void
-update_auto_int (GSettings   *settings,
-		 const gchar *key,
-		 gpointer     user_data)
-{
-	int *storage = user_data;
-
-	*storage = g_settings_get_int (settings, key);
-}
-
-void
-eel_g_settings_add_auto_int (GSettings *settings,
-			     const char *key,
-			     int *storage)
-{
-	char *signal;
-
-	*storage = g_settings_get_int (settings, key);
-	signal = g_strconcat ("changed::", key, NULL);
-	g_signal_connect (settings, signal,
-			  G_CALLBACK(update_auto_int),
-			  storage);
-
-	g_free (signal);
-}
-
-static void
-update_auto_enum (GSettings   *settings,
-		  const gchar *key,
-		  gpointer     user_data)
-{
-	int *storage = user_data;
-
-	*storage = g_settings_get_enum (settings, key);
-}
-
-void
-eel_g_settings_add_auto_enum (GSettings *settings,
-			      const char *key,
-			      int *storage)
-{
-	char *signal;
-
-	*storage = g_settings_get_enum (settings, key);
-	signal = g_strconcat ("changed::", key, NULL);
-	g_signal_connect (settings, signal,
-			  G_CALLBACK(update_auto_enum),
-			  storage);
-
-	g_free (signal);
-}
-
-static void
-update_auto_strv (GSettings   *settings,
-		  const gchar *key,
-		  gpointer     user_data)
-{
-	char ***storage = user_data;
-
-	g_free (*storage);
-	*storage = g_settings_get_strv (settings, key);
-}
-
-void
-eel_g_settings_add_auto_strv (GSettings *settings,
-			      const char *key,
-			      char ***storage)
-{
-	char *signal;
-
-	*storage = NULL;
-	update_auto_strv (settings, key, storage);
-	signal = g_strconcat ("changed::", key, NULL);
-	g_signal_connect (settings, signal,
-			  G_CALLBACK(update_auto_strv),
-			  storage);
-
-	g_free (signal);
-}
-
-static void
 update_auto_strv_as_quarks (GSettings   *settings,
 			    const gchar *key,
 			    gpointer     user_data)
diff --git a/eel/eel-glib-extensions.h b/eel/eel-glib-extensions.h
index ddb95bb..68b5204 100644
--- a/eel/eel-glib-extensions.h
+++ b/eel/eel-glib-extensions.h
@@ -90,18 +90,6 @@ int         eel_round                                   (double
 void        eel_add_weak_pointer                        (gpointer               pointer_location);
 void        eel_remove_weak_pointer                     (gpointer               pointer_location);
 
-void        eel_g_settings_add_auto_enum                (GSettings *settings,
-							 const char *key,
-							 int *storage);
-void        eel_g_settings_add_auto_int                 (GSettings *settings,
-							 const char *key,
-							 int *storage);
-void        eel_g_settings_add_auto_boolean             (GSettings *settings,
-							 const char *key,
-							 gboolean *storage);
-void        eel_g_settings_add_auto_strv		(GSettings *settings,
-							 const char *key,
-							 char ***storage);
 void        eel_g_settings_add_auto_strv_as_quarks      (GSettings *settings,
 							 const char *key,
 							 GQuark **storage);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]