Fix modest_tny_msg_header_get_all_recipients_list (in case from is empty)
[modest] / src / maemo / modest-maemo-utils.h
index 80229da..c845d1f 100644 (file)
 
 #include <gtk/gtk.h>
 #include <stdio.h> /* for FILE* */
-#include <modest-protocol-info.h>
 #include <tny-fs-stream.h>
 #include <libosso.h>
-
+#include "widgets/modest-global-settings-dialog.h"
+#include "widgets/modest-validating-entry.h"
 
 #define MODEST_MAEMO_UTILS_MYDOCS_FOLDER "MyDocs"
 #define MODEST_MAEMO_UTILS_DEFAULT_IMAGE_FOLDER ".images"
@@ -74,15 +74,6 @@ void modest_maemo_utils_setup_images_filechooser (GtkFileChooser *chooser);
 osso_context_t *modest_maemo_utils_get_osso_context (void);
 
 /**
- * modest_maemo_open_mcc_mapping_file:
- *
- * open the mcc mapping file, or NULL if it fails
- *
- * Returns: file ptr or NULL in case of error
- */
-FILE* modest_maemo_open_mcc_mapping_file (void);
-
-/**
  * modest_maemo_set_thumbable_scrollbar:
  * @win: a scrollable window
  * @thumbable: set it to thumbable (TRUE) or small (FALSE)
@@ -111,4 +102,16 @@ osso_context_t* modest_maemo_utils_get_osso_context (void);
  */
 void modest_maemo_utils_set_osso_context (osso_context_t *osso_context);
 
+/**
+ * modest_maemo_utils_get_manager_menubar_as_menu:
+ * @manager: a #GtkUIManager
+ * @item_name: a string
+ *
+ * obtains the node with name @item_name in @manager (which happens to be a menubar) as a
+ * #GtkMenu.
+ *
+ * Returns: a #GtkMenu
+ */
+GtkWidget *modest_maemo_utils_get_manager_menubar_as_menu (GtkUIManager *manager, const gchar *item_name);
+
 #endif /*__MODEST_MAEMO_UTILS_H__*/