Cairo-Dock 2.4.0~1
cairo-dock-desktop-file-factory.h File Reference

Functions

void cairo_dock_remove_html_spaces (gchar *cString)
gchar * cairo_dock_add_desktop_file_from_uri (const gchar *cURI, const gchar *cDockName, double fOrder, CairoDockIconGroup iGroup, GError **erreur)
gchar * cairo_dock_add_desktop_file_from_type (CairoDockDesktopFileType iLauncherType, const gchar *cDockName, double fOrder, CairoDockIconGroup iGroup, GError **erreur)

Detailed Description

This class handles the creation and update of desktop files, which are group/key pair files used by Cairo-Dock to store information about icons : launchers, separators, sub-docks.


Function Documentation

void cairo_dock_remove_html_spaces ( gchar *  cString)

Replace the %20 by normal spaces into the string. The string is directly modified.

Parameters:
cStringthe string (it can't be a constant string)
gchar* cairo_dock_add_desktop_file_from_uri ( const gchar *  cURI,
const gchar *  cDockName,
double  fOrder,
CairoDockIconGroup  iGroup,
GError **  erreur 
)

Create, add and fill a desktop file for a given URI. The URI can be either a common desktop file, a script, or a file/folder/mounting point.

Parameters:
cURIURI of a file defining the launcher.
cDockNamename of the dock the separator will be added.
fOrderorder of the icon inside the dock.
iGroupgroup of the icon.
erreuran error filled if something went wrong.
Returns:
the name of the new desktop file, in a newly allocated string, or NULL if failed.
gchar* cairo_dock_add_desktop_file_from_type ( CairoDockDesktopFileType  iLauncherType,
const gchar *  cDockName,
double  fOrder,
CairoDockIconGroup  iGroup,
GError **  erreur 
)

Create and add an empty default desktop file for a given type.

Parameters:
iLauncherTypetype of the icon it will represent : launcher, file, container icon, separator.
cDockNamename of the dock the separator will be added.
fOrderorder of the icon inside the dock.
iGroupgroup of the icon.
erreuran error filled if something went wrong.
Returns:
the name of the new desktop file, in a newly allocated string, or NULL if failed.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines