~ubuntu-branches/ubuntu/oneiric/cairo-dock/oneiric-201106091216

« back to all changes in this revision

Viewing changes to src/cairo-dock-launcher-factory.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe), Matthieu Baerts (matttbe), Didier Roche
  • Date: 2010-03-01 21:24:00 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100301212400-3a3csog6eonse3in
Tags: 2.1.3-6-0ubuntu1
[ Matthieu Baerts (matttbe) ]
* New Upstream Version. (LP: #521534)
* Updated debian/watch and debian/copyright with LP account.
* Removed debian/patches/02-merge-changelog.patch'
 - data/ChangeLog.txt has to respect a syntax and is used by CD.
* debian/cairo-dock.1:
 - Updated with the latest release.
 - The domain name 'cairo-dock.org' has changed to 'glx-dock.org'
* debian/control:
 - Changed the homepage and other links (glx-dock.org)
 - Updated cairo-dock-dev architecture to 'all' (it no longer contains compiled files)
* debian/cairo-dock-dev.install
 - libcairo-dock.a and libcairo-dock.so no longer exist
* debian/rules
 - removed uneeded changelog file
* Updated debian/patches/01-desktop-file-category.patch

[ Didier Roche ]
* Fix debian/watch
* Fix some issue in versionning
* debian/control: clean the packaging and add right -plugins depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
 
1
/*
2
2
* This file is a part of the Cairo-Dock project
3
3
*
4
4
* Copyright : (C) see the 'copyright' file.
27
27
G_BEGIN_DECLS
28
28
 
29
29
/**
30
 
*@file cairo-dock-launcher-factory.h This class handles the creation of launcher icons, from the desktop files contained into the 'launchers' floder.
 
30
*@file cairo-dock-launcher-factory.h This class handles the creation 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.
31
31
*/
32
32
 
33
 
/** Search the path of an icon into the defined folders/icons themes. It handles the '~' caracter.
 
33
/** Search the path of an icon into the defined icons themes. It also handles the '~' caracter in paths.
34
34
 * @param cFileName name of the icon file.
35
35
 * @return the complete path of the icon, or NULL if not found.
36
36
 */
37
37
gchar *cairo_dock_search_icon_s_path (const gchar *cFileName);
38
38
 
 
39
gboolean cairo_dock_remove_version_from_string (gchar *cString);
 
40
 
 
41
 
 
42
/** Set the class of a launcher. You can safely free the paramater 'cStartupWMClass' after calling this function. This function is tobe called on a launcher well defined (all other parameters should be already filled).
 
43
 * @param icon a launcher.
 
44
 * @param cStartupWMClass the class of the launcher defined in its .desktop file, or NULL. You can't expect the resulting class to be the one you provide, because this function makes a lot of guesses.
 
45
 */
 
46
void cairo_dock_set_launcher_class (Icon *icon, const gchar *cStartupWMClass);
 
47
 
39
48
 
40
49
/** Read a desktop file and fetch all its data into an Icon.
41
50
 * @param cDesktopFileName name or path of a desktop file. If it's a simple name, it will be taken in the "launchers" folder of the current theme.
43
52
*/
44
53
void cairo_dock_load_icon_info_from_desktop_file (const gchar *cDesktopFileName, Icon *icon);
45
54
 
46
 
 
47
55
/** Create an Icon from a given desktop file, and fill its buffers. The resulting icon can directly be used inside a container. Class inhibating is handled.
48
 
 * @param cDesktopFileName nameof the desktop file, taken in the "launchers" folder of the current theme.
 
56
 * @param cDesktopFileName name of the desktop file, present in the "launchers" folder of the current theme.
49
57
 * @param pSourceContext a drawing context, not altered.
50
58
 * @return the newly created icon.
51
59
*/
59
67
void cairo_dock_reload_icon_from_desktop_file (const gchar *cDesktopFileName, cairo_t *pSourceContext, Icon *icon);
60
68
 
61
69
 
62
 
/** Reload completely a launcher. It handles the side-effects like modifying the class, the sub-dock's view, the container, etc.
 
70
/** Reload completely a launcher. It handles all the side-effects like modifying the class, the sub-dock's view, the container, etc.
63
71
 * @param icon the launcher Icon to reload.
64
72
*/
65
73
void cairo_dock_reload_launcher (Icon *icon);