* add modest_platform_show_help helper function, to invoke the help browser
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Fri, 18 May 2007 15:54:45 +0000 (15:54 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Fri, 18 May 2007 15:54:45 +0000 (15:54 +0000)
pmo-trunk-r1914

src/gnome/modest-platform.c
src/maemo/modest-platform.c

index afba432..5e78371 100644 (file)
@@ -215,3 +215,11 @@ modest_platform_on_new_msg (void)
        /* TODO: implement this */
        g_print ("--------------- NEW MESSAGE ARRIVED ---------------\n");
 }
+
+
+
+gboolean
+modest_platform_show_help (GtkWidget *widget, const gchar *help_id)
+{
+       return TRUE; /* TODO */
+}
index 921bccc..70b0f11 100644 (file)
@@ -36,7 +36,7 @@
 #include "maemo/modest-maemo-global-settings-dialog.h"
 
 #include <modest-hildon-includes.h>
-
+#include <osso-helplib.h>
 #include <dbus_api/modest-dbus-callbacks.h>
 #include <maemo/modest-osso-autosave-callbacks.h>
 #include <libosso.h>
@@ -48,6 +48,7 @@
 #include <gtk/gtkmain.h>
 #include <string.h>
 
+
 static osso_context_t *osso_context = NULL;
        
 static void    
@@ -790,3 +791,14 @@ modest_platform_on_new_msg (void)
        /* TODO: update the application icon in the task navigator */ 
        g_print ("--------------- NEW MESSAGE ARRIVED ---------------\n");
 }
+
+
+
+gboolean
+modest_platform_show_help (GtkWidget *widget, const gchar *help_id)
+{
+       g_return_val_if_fail (help_id, FALSE);
+       g_return_val_if_fail (osso_context, FALSE);
+
+       return ossohelp_show (osso_context, help_id, OSSO_HELP_SHOW_DIALOG);
+}