* all:
[modest] / src / widgets / modest-account-view.h
index bb0263d..c3f476c 100644 (file)
@@ -30,9 +30,8 @@
 #ifndef __MODEST_ACCOUNT_VIEW_H__
 #define __MODEST_ACCOUNT_VIEW_H__
 
-#include <gtk/gtk.h>
-#include <glib/gi18n.h>
-#include <modest-account-mgr.h>
+#include "modest-account-mgr.h"
+#include <gtk/gtktreeview.h>
 
 G_BEGIN_DECLS
 
@@ -61,9 +60,18 @@ struct _ModestAccountViewClass {
 /* member functions */
 GType        modest_account_view_get_type    (void) G_GNUC_CONST;
 
+ModestAccountView*   modest_account_view_new         (ModestAccountMgr *account_mgr);
 
-
-GtkWidget*   modest_account_view_new         (ModestAccountMgr *account_mgr);
+/**
+ * modest_account_view_get_selected_account:
+ * @account_view: a #ModestAccountView
+ * 
+ * Gets the name of the account currently selected
+ * 
+ * Returns: the name of the selected account or NULL if none is
+ * selected
+ **/
+const gchar*   modest_account_view_get_selected_account    (ModestAccountView *account_view);
 
 G_END_DECLS