[network-manager-applet/aleksander/mobile-providers] fixup! libnm-gtk: new 'NMAMobileProvidersDatabase' object



commit abd953b3f8966c369d67466053f3c7ab14c4f41e
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Wed Nov 28 16:06:08 2012 +0100

    fixup! libnm-gtk: new 'NMAMobileProvidersDatabase' object

 src/libnm-gtk/nm-mobile-providers.c |   94 +++++++++++++++++-----------------
 1 files changed, 47 insertions(+), 47 deletions(-)
---
diff --git a/src/libnm-gtk/nm-mobile-providers.c b/src/libnm-gtk/nm-mobile-providers.c
index 947a039..3b9b9ce 100644
--- a/src/libnm-gtk/nm-mobile-providers.c
+++ b/src/libnm-gtk/nm-mobile-providers.c
@@ -1109,10 +1109,10 @@ G_DEFINE_TYPE_EXTENDED (NMAMobileProvidersDatabase, nma_mobile_providers_databas
                         G_IMPLEMENT_INTERFACE (G_TYPE_ASYNC_INITABLE, async_initable_iface_init))
 
 enum {
-    PROP_0,
-    PROP_COUNTRY_CODES_PATH,
-    PROP_SERVICE_PROVIDERS_PATH,
-    PROP_LAST
+	PROP_0,
+	PROP_COUNTRY_CODES_PATH,
+	PROP_SERVICE_PROVIDERS_PATH,
+	PROP_LAST
 };
 
 static GParamSpec *properties[PROP_LAST];
@@ -1321,12 +1321,12 @@ initable_init_finish (GAsyncInitable  *initable,
 {
 	NMAMobileProvidersDatabase *self = NMA_MOBILE_PROVIDERS_DATABASE (initable);
 
-    if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error))
-        return FALSE;
+	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (result), error))
+		return FALSE;
 
-    self->priv->countries = g_hash_table_ref (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result)));
+	self->priv->countries = g_hash_table_ref (g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (result)));
 
-    return TRUE;
+	return TRUE;
 }
 
 static void
@@ -1366,13 +1366,13 @@ initable_init_async (GAsyncInitable      *initable,
 	                                    user_data,
 	                                    initable_init_async);
 
-    g_simple_async_result_run_in_thread (
-	    result,
-	    (GSimpleAsyncThreadFunc)initable_init_async_in_thread,
-	    io_priority,
-	    cancellable);
+	g_simple_async_result_run_in_thread (
+		result,
+		(GSimpleAsyncThreadFunc)initable_init_async_in_thread,
+		io_priority,
+		cancellable);
 
-    g_object_unref (result);
+	g_object_unref (result);
 }
 
 /**********************************/
@@ -1392,7 +1392,7 @@ initable_init_sync (GInitable     *initable,
 	if (!self->priv->countries)
 		return FALSE;
 
-    /* All good */
+	/* All good */
 	return TRUE;
 }
 
@@ -1405,14 +1405,14 @@ nma_mobile_providers_database_new (const gchar *country_codes,
                                    GAsyncReadyCallback callback,
                                    gpointer user_data)
 {
-    g_async_initable_new_async (NMA_TYPE_MOBILE_PROVIDERS_DATABASE,
-                                G_PRIORITY_DEFAULT,
-                                cancellable,
-                                callback,
-                                user_data,
-                                "country-codes",     country_codes,
-                                "service-providers", service_providers,
-                                NULL);
+	g_async_initable_new_async (NMA_TYPE_MOBILE_PROVIDERS_DATABASE,
+	                            G_PRIORITY_DEFAULT,
+	                            cancellable,
+	                            callback,
+	                            user_data,
+	                            "country-codes",     country_codes,
+	                            "service-providers", service_providers,
+	                            NULL);
 }
 
 NMAMobileProvidersDatabase *
@@ -1457,17 +1457,17 @@ set_property (GObject *object,
 {
 	NMAMobileProvidersDatabase *self = NMA_MOBILE_PROVIDERS_DATABASE (object);
 
-    switch (prop_id) {
-    case PROP_COUNTRY_CODES_PATH:
-	    self->priv->country_codes_path = g_value_dup_string (value);
-	    break;
-    case PROP_SERVICE_PROVIDERS_PATH:
-	    self->priv->service_providers_path = g_value_dup_string (value);
-	    break;
-    default:
-        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
-        break;
-    }
+	switch (prop_id) {
+	case PROP_COUNTRY_CODES_PATH:
+		self->priv->country_codes_path = g_value_dup_string (value);
+		break;
+	case PROP_SERVICE_PROVIDERS_PATH:
+		self->priv->service_providers_path = g_value_dup_string (value);
+		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+		break;
+	}
 }
 
 static void
@@ -1478,23 +1478,23 @@ get_property (GObject *object,
 {
 	NMAMobileProvidersDatabase *self = NMA_MOBILE_PROVIDERS_DATABASE (object);
 
-    switch (prop_id) {
-    case PROP_COUNTRY_CODES_PATH:
-	    g_value_set_string (value, self->priv->country_codes_path);
-	    break;
-    case PROP_SERVICE_PROVIDERS_PATH:
-	    g_value_set_string (value, self->priv->service_providers_path);
-	    break;
-    default:
-        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
-        break;
-    }
+	switch (prop_id) {
+	case PROP_COUNTRY_CODES_PATH:
+		g_value_set_string (value, self->priv->country_codes_path);
+		break;
+	case PROP_SERVICE_PROVIDERS_PATH:
+		g_value_set_string (value, self->priv->service_providers_path);
+		break;
+	default:
+		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
+		break;
+	}
 }
 
 static void
 nma_mobile_providers_database_init (NMAMobileProvidersDatabase *self)
 {
-    /* Setup private data */
+	/* Setup private data */
 	self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
 	                                          NMA_TYPE_MOBILE_PROVIDERS_DATABASE,
 	                                          NMAMobileProvidersDatabasePrivate);
@@ -1511,7 +1511,7 @@ finalize (GObject *object)
 	if (self->priv->countries)
 		g_hash_table_unref (self->priv->countries);
 
-    G_OBJECT_CLASS (nma_mobile_providers_database_parent_class)->finalize (object);
+	G_OBJECT_CLASS (nma_mobile_providers_database_parent_class)->finalize (object);
 }
 
 static void



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