* Added new method modest_platform_get_osso_context, required
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 19 Nov 2008 18:20:27 +0000 (18:20 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 19 Nov 2008 18:20:27 +0000 (18:20 +0000)
  for plugins.

pmo-trunk-r6347

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

index 4015f50..5e1e11a 100644 (file)
@@ -2139,3 +2139,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 24cd4bb..75662fa 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 3a88865..a037467 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
 
@@ -518,6 +521,18 @@ void     modest_platform_run_folder_details_dialog (GtkWindow *parent_window,
 void     modest_platform_run_header_details_dialog (GtkWindow *parent_window,
                                                    TnyHeader *header);
 
+#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