help_connect


Description:

[ CCode ( cname = "gimp_help_connect" ) ]
public void help_connect (Widget widget, string? tooltip, owned HelpFunc help_func, string help_id)

Note that this function is automatically called by all libgimp dialog constructors.

You only have to call it for windows/dialogs you created "manually".

Most of the time, what you want to call for non-windows widgets is simply [func@GimpUi.help_set_help_data]. Yet if you need to set up an help_func, call `gimp_help_connect` instead. Note that `gimp_help_set_help_data` is implied, so you don't have to call it too.

Parameters:

widget

The widget you want to connect the help accelerator for. Will be a Window in most cases.

tooltip

The text for this widget's tooltip. For windows, you usually want to set null.

help_func

The function which will be called if the user presses "F1".

help_id

The help_id which will be passed to help_func.

help_data

The help_data pointer which will be passed to help_func.

help_data_destroy

Destroy function for help_data.


Namespace: GimpUi
Package: gimp-ui-3.0