/** * xfce_dialog_show_help: * @parent : (allow-none): transient parent of the dialog, or %NULL. * @component : (allow-none): name of the component opening the help page or %NULL. If the * value is %NULL the target will be the main page of the * documentation website. * @page : (allow-none): subpage of the @component on the website or %NULL. * @offset : (allow-none): anchor offset in @page or %NULL. * * Asks the user to visit the online documentation. If confirmed, it will open * the webbrowser and redirect the user to the correct location. * * Appart from the @component, @page and @offset the following information * is also send to the server: user language and the xfce_version_string(). * * See also: xfce_dialog_show_help_with_version(). * * Since: 4.10 */ void xfce_dialog_show_help (GtkWindow *parent, const gchar *component, const gchar *page, const gchar *offset) { xfce_dialog_show_help_with_version (parent, component, page, offset, NULL); }
static void settings_dialog_response (GtkWidget *dialog, gint response_id, XfceSettingsEditorBox *settings_editor) { if (response_id == GTK_RESPONSE_HELP) xfce_dialog_show_help_with_version (GTK_WINDOW (dialog), "xfce4-settings", "settings-editor", NULL, XFCE4_SETTINGS_VERSION_SHORT); else { save_window_size (dialog, settings_editor); gtk_main_quit (); } }