G_CALLBACK (on_response), self);
self->modified = FALSE;
-
+
/* When this window is shown, hibernation should not be possible,
* because there is no sensible way to save the state: */
modest_window_mgr_prevent_hibernation_while_window_is_shown (
#include <widgets/modest-account-view.h>
#include <modest-runtime.h>
+#include "modest-platform.h"
#include <modest-account-mgr-helpers.h>
#include <string.h>
#include "modest-tny-platform-factory.h"
TRUE, TRUE, 2);
gtk_window_set_title (GTK_WINDOW (obj), _("mcen_ti_emailsetup_accounts"));
+
}
GtkWidget*
{
GObject *obj = g_object_new(MODEST_TYPE_ACCOUNT_VIEW_WINDOW, NULL);
+ /* Attach dialog help */
+ modest_platform_set_dialog_help (GTK_DIALOG (obj), "applications_email_accountsettings");
+
return GTK_WIDGET(obj);
}
}
}
+void
+modest_platform_set_dialog_help (GtkDialog *parent_window,
+ const gchar *help_id)
+{
+ gboolean result;
+ g_return_if_fail (help_id);
+ g_return_if_fail (osso_context);
+ g_return_if_fail (GTK_IS_DIALOG (parent_window));
+
+ /* Show help */
+#ifdef MODEST_HAVE_OSSO_HELP
+ result = ossohelp_dialog_help_enable (parent_window, help_id, osso_context);
+#else
+ result = hildon_help_dialog_help_enable (parent_window, help_id, osso_context);
+#endif
+
+ if (!result)
+ g_warning ("Help topic %s not found", help_id);
+
+}
+
void
modest_platform_show_search_messages (GtkWindow *parent_window)
{
const gchar *help_id);
/**
+ * modest_platform_set_dialog_help:
+ * @dialog: a #GtkDialog
+ * @help_id: the help topic id to be shown on requesting
+ * help in the dialog
+ *
+ * attachs a help topic to the dialog
+ **/
+void modest_platform_set_dialog_help (GtkDialog *parent_window,
+ const gchar *help_id);
+
+/**
* modest_platform_show_search_messages:
* @parent_window: window the dialog will be child of
*