Cairo-Dock
3.4.0
|
Functions | |
gboolean | cairo_dock_remove_version_from_string (gchar *cString) |
void | cairo_dock_remove_html_spaces (gchar *cString) |
void | cairo_dock_get_version_from_string (const gchar *cVersionString, int *iMajorVersion, int *iMinorVersion, int *iMicroVersion) |
gboolean | cairo_dock_string_is_address (const gchar *cString) |
const gchar * | cairo_dock_get_default_terminal (void) |
gchar * | cairo_dock_get_command_with_right_terminal (const gchar *cCommand) |
Some helper functions.
gboolean cairo_dock_remove_version_from_string | ( | gchar * | cString | ) |
Remove the version number from a string. Directly modifies the string.
cString | a string. |
void cairo_dock_remove_html_spaces | ( | gchar * | cString | ) |
Replace the %20 by normal spaces into the string. The string is directly modified.
cString | the string (it can't be a constant string) |
void cairo_dock_get_version_from_string | ( | const gchar * | cVersionString, |
int * | iMajorVersion, | ||
int * | iMinorVersion, | ||
int * | iMicroVersion | ||
) |
Get the 3 version numbers of a string.
cVersionString | the string of the form "x.y.z". |
iMajorVersion | pointer to the major version. |
iMinorVersion | pointer to the minor version. |
iMicroVersion | pointer to the micro version. |
gboolean cairo_dock_string_is_address | ( | const gchar * | cString | ) |
Say if a string is an adress (file://xxx, http://xxx, ftp://xxx, etc).
cString | a string. |
const gchar* cairo_dock_get_default_terminal | ( | void | ) |
Get the command to launch the default terminal
gchar* cairo_dock_get_command_with_right_terminal | ( | const gchar * | cCommand | ) |
Get the command to launch another one from a terminal
cCommand | command to launch from a terminal |