Cairo-Dock 2.4.0~1
cairo-dock-launcher-manager.h File Reference

Functions

Iconcairo_dock_create_icon_from_desktop_file (const gchar *cDesktopFileName)
Iconcairo_dock_create_dummy_launcher (gchar *cName, gchar *cFileName, gchar *cCommand, gchar *cQuickInfo, double fOrder)
void cairo_dock_build_docks_tree_with_desktop_files (const gchar *cDirectory)
void cairo_dock_reload_launcher (Icon *icon)

Detailed Description

* This class handles the creation, load and reload of launcher icons, from the desktop files contained inside the 'launchers' folder. The files holding the information are common desktop files, with additionnal keys added by the dock on the launcher creation.


Function Documentation

Icon* cairo_dock_create_icon_from_desktop_file ( const gchar *  cDesktopFileName)

Create an Icon from a given desktop file, and fill its buffers. The resulting icon can directly be used inside a container. Class inhibiting is handled.

Parameters:
cDesktopFileNamename of the desktop file, present in the "launchers" folder of the current theme.
Returns:
the newly created icon.
Icon* cairo_dock_create_dummy_launcher ( gchar *  cName,
gchar *  cFileName,
gchar *  cCommand,
gchar *  cQuickInfo,
double  fOrder 
)

Create an Icon that will behave like a launcher. It's especially useful for applets that want to fill a sub-dock or a desklet (the icon is not loaded by the function). Be careful that the strings are not duplicated. Therefore, you must use g_strdup() if you want to set a constant string; and must not free the strings after calling this function.

Parameters:
cNamelabel of the icon
cFileNamename of an image
cCommanda command, or NULL
cQuickInfoa quick-info, or NULL
fOrderorder of the icon in its container.
Returns:
the newly created icon.
void cairo_dock_build_docks_tree_with_desktop_files ( const gchar *  cDirectory)

Load a set of .desktop files that define icons, and build the corresponding tree of docks. All the icons are created and placed inside their dock, which is created if necessary.

Parameters:
cDirectorya folder containing some .desktop files.
void cairo_dock_reload_launcher ( Icon icon)

Reload completely a launcher. It handles all the side-effects like modifying the class, the sub-dock's view, the container, etc.

Parameters:
iconthe launcher Icon to reload.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines