Callbacks

InitFunc (module, make_resident)

PanelPluginCheck (screen)

PanelPluginFunc (plugin)

PanelPluginPreInit (argc, argv)

Details

Libxfce4panel.InitFunc(module, make_resident)
Parameters:
Return type:

GObject.GType

Libxfce4panel.PanelPluginCheck(screen)
Parameters:

screen (Gdk.Screen) – the Gdk.Screen the panel is running on

Returns:

True if the plugin can be started, False otherwise.

Return type:

bool

Callback function that is run before creating a plugin. It should return False if the plugin is not available for whatever reason. The function can be given as argument to one of the registration macros.

Libxfce4panel.PanelPluginFunc(plugin)
Parameters:

plugin (Libxfce4panel.PanelPlugin) – an Libxfce4panel.PanelPlugin

Callback function to create the plugin contents. It should be given as the argument to the registration macros.

Libxfce4panel.PanelPluginPreInit(argc, argv)
Parameters:
  • argc (int) – number of arguments to the plugin

  • argv (str) – argument array

Returns:

True on success, False otherwise.

Return type:

bool

Callback function that is run in an external plugin before Gtk.init(). It should return False if the plugin is not available for whatever reason. The function can be given as argument to one of the registration macros.

The main purpose of this callback is to allow multithreaded plugins to call g_thread_init().

New in version 4.6.