AppChooserWidget.connectPopulatePopup
gulong connectPopulatePopup(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.menu.Menu)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.app_info.AppInfo)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.app_chooser_widget.AppChooserWidget)))
&& Parameters!T.length < 4)Connect to PopulatePopup signal.
Emitted when a context menu is about to popup over an application item. Clients can insert menu items into the provided #GtkMenu object in the callback of this signal; the context menu will be shown over the item if at least one item has been added to the menu.
Parameters
callback | signal callback delegate or function to connect void callback(gtk.menu.Menu menu, gio.app_info.AppInfo application, gtk.app_chooser_widget.AppChooserWidget appChooserWidget) menu the #GtkMenu to populate (optional) application the current #GAppInfo (optional) appChooserWidget the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID