* Added new method modest_platform_get_osso_context, required
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 4 Dec 2008 21:12:32 +0000 (21:12 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 4 Dec 2008 21:12:32 +0000 (21:12 +0000)
  for plugins.

pmo-drop-split-view-r6626

src/hildon2/modest-platform.c
src/maemo/modest-platform.c
src/modest-platform.h

index f4f19da..435ea28 100644 (file)
@@ -2132,3 +2132,9 @@ modest_platform_run_header_details_dialog (GtkWindow *parent_window,
                                  G_CALLBACK (gtk_widget_destroy),
                                  dialog);
 }
+
+osso_context_t *
+modest_platform_get_osso_context (void)
+{
+       return modest_maemo_utils_get_osso_context ();
+}
index 3a77873..5183a0b 100644 (file)
@@ -2152,3 +2152,9 @@ modest_platform_run_header_details_dialog (GtkWindow *parent_window,
                                  G_CALLBACK (gtk_widget_destroy),
                                  dialog);
 }
+
+osso_context_t *
+modest_platform_get_osso_context (void)
+{
+       return modest_maemo_utils_get_osso_context ();
+}
index 386b99c..d99e7f5 100644 (file)
@@ -34,6 +34,9 @@
 #include "widgets/modest-window.h"
 #include "widgets/modest-folder-view.h"
 #include "widgets/modest-sort-criterium-view.h"
+#ifndef MODEST_TOOLKIT_GTK
+#include <libosso.h>
+#endif
 
 G_BEGIN_DECLS
 
@@ -527,6 +530,19 @@ void     modest_platform_run_header_details_dialog (GtkWindow *parent_window,
  **/
 void     modest_platform_on_runtime_initialized ();
 
+#ifndef MODEST_TOOLKIT_GTK
+/**
+ * modest_platform_get_osso_context:
+ *
+ * Obtains the osso context pointer for the application
+ *
+ * Returns: the osso context pointer
+ */
+osso_context_t *modest_platform_get_osso_context (void);
+#endif
+
+
+
 G_END_DECLS
 
 #endif /* __MODEST_PLATFORM_UTILS_H__ */