From: Dirk-Jan C. Binnema Date: Fri, 18 May 2007 15:54:45 +0000 (+0000) Subject: * add modest_platform_show_help helper function, to invoke the help browser X-Git-Tag: git_migration_finished~3564 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=ba611926b5d945ffff56e5d667711d5a6dec9fca * add modest_platform_show_help helper function, to invoke the help browser pmo-trunk-r1914 --- diff --git a/src/gnome/modest-platform.c b/src/gnome/modest-platform.c index afba432..5e78371 100644 --- a/src/gnome/modest-platform.c +++ b/src/gnome/modest-platform.c @@ -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 */ +} diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index 921bccc..70b0f11 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -36,7 +36,7 @@ #include "maemo/modest-maemo-global-settings-dialog.h" #include - +#include #include #include #include @@ -48,6 +48,7 @@ #include #include + 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); +}