empathy r2344 - trunk/libempathy-gtk



Author: xclaesse
Date: Fri Jan 30 17:35:03 2009
New Revision: 2344
URL: http://svn.gnome.org/viewvc/empathy?rev=2344&view=rev

Log:
Move public methods at the bottom.

Modified:
   trunk/libempathy-gtk/empathy-contact-selector.c

Modified: trunk/libempathy-gtk/empathy-contact-selector.c
==============================================================================
--- trunk/libempathy-gtk/empathy-contact-selector.c	(original)
+++ trunk/libempathy-gtk/empathy-contact-selector.c	Fri Jan 30 17:35:03 2009
@@ -50,24 +50,6 @@
 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 @@
       G_PARAM_READWRITE | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
 }
 
+/* public methods */
+
 EmpathyContactSelector *
 empathy_contact_selector_new (EmpathyContactListStore *store)
 {
@@ -357,3 +341,21 @@
 
   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;
+}



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