[evolution-data-server] e-source-registry.c: Minor code reordering.



commit ac38601da7dde8be0cafe16a8f5d57cd1d78d537
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Dec 31 08:50:30 2012 -0500

    e-source-registry.c: Minor code reordering.

 libedataserver/e-source-registry.c |  104 ++++++++++++++++++------------------
 1 files changed, 52 insertions(+), 52 deletions(-)
---
diff --git a/libedataserver/e-source-registry.c b/libedataserver/e-source-registry.c
index 93ae50b..6503998 100644
--- a/libedataserver/e-source-registry.c
+++ b/libedataserver/e-source-registry.c
@@ -2385,58 +2385,6 @@ e_source_registry_list_sources (ESourceRegistry *registry,
 }
 
 /**
- * e_source_registry_check_enabled:
- * @registry: an #ESourceRegistry
- * @source: an #ESource
- *
- * Determines whether @source is "effectively" enabled by examining its
- * own #ESource:enabled property as well as those of its ancestors in the
- * #ESource hierarchy.  If all examined #ESource:enabled properties are
- * %TRUE, then the function returns %TRUE.  If any are %FALSE, then the
- * function returns %FALSE.
- *
- * Use this function instead of e_source_get_enabled() to determine
- * things like whether to display an #ESource in a user interface or
- * whether to act on the data set described by the #ESource.
- *
- * Returns: whether @source is "effectively" enabled
- *
- * Since: 3.8
- **/
-gboolean
-e_source_registry_check_enabled (ESourceRegistry *registry,
-                                 ESource *source)
-{
-	gboolean enabled;
-	gchar *parent_uid;
-
-	g_return_val_if_fail (E_IS_SOURCE_REGISTRY (registry), FALSE);
-	g_return_val_if_fail (E_IS_SOURCE (source), FALSE);
-
-	enabled = e_source_get_enabled (source);
-	parent_uid = e_source_dup_parent (source);
-
-	while (enabled && parent_uid != NULL) {
-		ESource *parent;
-
-		parent = e_source_registry_ref_source (registry, parent_uid);
-
-		g_free (parent_uid);
-		parent_uid = NULL;
-
-		if (parent != NULL) {
-			enabled = e_source_get_enabled (parent);
-			parent_uid = e_source_dup_parent (parent);
-			g_object_unref (parent);
-		}
-	}
-
-	g_free (parent_uid);
-
-	return enabled;
-}
-
-/**
  * e_source_registry_find_extension:
  * @registry: an #ESourceRegistry
  * @source: an #ESource
@@ -2497,6 +2445,58 @@ e_source_registry_find_extension (ESourceRegistry *registry,
 	return source;
 }
 
+/**
+ * e_source_registry_check_enabled:
+ * @registry: an #ESourceRegistry
+ * @source: an #ESource
+ *
+ * Determines whether @source is "effectively" enabled by examining its
+ * own #ESource:enabled property as well as those of its ancestors in the
+ * #ESource hierarchy.  If all examined #ESource:enabled properties are
+ * %TRUE, then the function returns %TRUE.  If any are %FALSE, then the
+ * function returns %FALSE.
+ *
+ * Use this function instead of e_source_get_enabled() to determine
+ * things like whether to display an #ESource in a user interface or
+ * whether to act on the data set described by the #ESource.
+ *
+ * Returns: whether @source is "effectively" enabled
+ *
+ * Since: 3.8
+ **/
+gboolean
+e_source_registry_check_enabled (ESourceRegistry *registry,
+                                 ESource *source)
+{
+	gboolean enabled;
+	gchar *parent_uid;
+
+	g_return_val_if_fail (E_IS_SOURCE_REGISTRY (registry), FALSE);
+	g_return_val_if_fail (E_IS_SOURCE (source), FALSE);
+
+	enabled = e_source_get_enabled (source);
+	parent_uid = e_source_dup_parent (source);
+
+	while (enabled && parent_uid != NULL) {
+		ESource *parent;
+
+		parent = e_source_registry_ref_source (registry, parent_uid);
+
+		g_free (parent_uid);
+		parent_uid = NULL;
+
+		if (parent != NULL) {
+			enabled = e_source_get_enabled (parent);
+			parent_uid = e_source_dup_parent (parent);
+			g_object_unref (parent);
+		}
+	}
+
+	g_free (parent_uid);
+
+	return enabled;
+}
+
 /* Helper for e_source_registry_build_display_tree() */
 static gint
 source_registry_compare_nodes (GNode *node_a,



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