]> git.0d.be Git - empathy.git/commitdiff
Move public methods at the bottom.
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 Jan 2009 17:35:03 +0000 (17:35 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 Jan 2009 17:35:03 +0000 (17:35 +0000)
svn path=/trunk/; revision=2344

libempathy-gtk/empathy-contact-selector.c

index 9c7052c3f8402721660c3b0c3dceb1f805f9dcd2..0a524a5001b6674d66e8d4b06ae6efbf85db219b 100644 (file)
@@ -50,24 +50,6 @@ typedef struct
 static void contact_selector_changed_cb (
     EmpathyContactSelector *selector, gpointer data);
 
-EmpathyContact *
-empathy_contact_selector_get_selected (EmpathyContactSelector *selector)
-{
-  EmpathyContactSelectorPriv *priv = GET_PRIV (selector);
-  EmpathyContact *contact = NULL;
-  GtkTreeIter iter;
-
-  g_return_val_if_fail (EMPATHY_IS_CONTACT_SELECTOR (selector), NULL);
-
-  if (!gtk_combo_box_get_active_iter (GTK_COMBO_BOX (selector), &iter))
-    return NULL;
-
-  gtk_tree_model_get (GTK_TREE_MODEL (priv->store), &iter,
-      EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &contact, -1);
-
-  return contact;
-}
-
 static guint
 contact_selector_get_number_online_contacts (GtkTreeStore *store)
 {
@@ -350,6 +332,8 @@ empathy_contact_selector_class_init (EmpathyContactSelectorClass *klass)
       G_PARAM_READWRITE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
 }
 
+/* public methods */
+
 EmpathyContactSelector *
 empathy_contact_selector_new (EmpathyContactListStore *store)
 {
@@ -357,3 +341,21 @@ empathy_contact_selector_new (EmpathyContactListStore *store)
 
   return g_object_new (EMPATHY_TYPE_CONTACT_SELECTOR, "store", store, NULL);
 }
+
+EmpathyContact *
+empathy_contact_selector_get_selected (EmpathyContactSelector *selector)
+{
+  EmpathyContactSelectorPriv *priv = GET_PRIV (selector);
+  EmpathyContact *contact = NULL;
+  GtkTreeIter iter;
+
+  g_return_val_if_fail (EMPATHY_IS_CONTACT_SELECTOR (selector), NULL);
+
+  if (!gtk_combo_box_get_active_iter (GTK_COMBO_BOX (selector), &iter))
+    return NULL;
+
+  gtk_tree_model_get (GTK_TREE_MODEL (priv->store), &iter,
+      EMPATHY_CONTACT_LIST_STORE_COL_CONTACT, &contact, -1);
+
+  return contact;
+}