~ubuntu-branches/ubuntu/precise/cairo-dock/precise

« back to all changes in this revision

Viewing changes to src/gldit/cairo-dock-icon-facility.h

  • Committer: Package Import Robot
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2012-02-16 01:08:11 UTC
  • mfrom: (1.1.21)
  • Revision ID: package-import@ubuntu.com-20120216010811-yhscmns26s6ngil8
Tags: 3.0.0.0beta1-0ubuntu1
* New upstream release. (LP: #932041)
* Upstream (short) ChangeLog:
 - The taskbar has been greatly enhanced.
 - The control of the dock from the keyboard is now very powerful:
  - many shortkeys have been added in different applets
  - you can activate a launcher by pressing a shortkey + its number
  - all shortkeys can now be managed in a single place
     in the configuration window.
 - A new Twitter applet lets you tweet in one click.
 - A new applet to inhibit the screensaver in one click.
 - Cairo-Dock now uses GTK3, for a better integration in a Gnome desktop
 - It's possible to donate to support the project!
 - (...)
* debian/patches:
 - Removed all previous patches (now in upstream)
* debian/rules and debian/control:
 - Added multiarch support
* debian/control:
 - libgtk-3-dev is now needed instead of libgtk2.0-dev
 - libgtkglext1-dev is no longer needed
    (replaced by libgl, libglu and libpango)
 - cairo-dock: increase the version of plug-ins packages
    and added: cairo-dock-plug-ins-dbus-interface-python
 - cairo-dock-dev has been replaced by libgldi-dev
    and dependences have been updated
 - Added a new package (libgldi3) in order to support multiarch
    and to fix this lintian error: package-name-doesnt-match-sonames
* debian/cairo-dock-core.install and debian/libgldi3.install:
 - libgldi3 package has been added
 - It contains the library used by cairo-dock
 - MultiArch is supported
* debian/cairo-dock-dev.install and debian/libgldi-dev.install:
 - cairo-dock-dev has been replaced by libgldi-dev
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
*/
46
46
#define cairo_dock_get_icon_order(icon) cairo_dock_get_group_order ((icon)->iGroup)
47
47
 
 
48
#define cairo_dock_set_icon_container(_pIcon, _pContainer) (_pIcon)->pContainer = CAIRO_CONTAINER (_pContainer)
 
49
 
 
50
#define cairo_dock_get_icon_max_scale(pIcon) (pIcon->fHeight != 0 && pIcon->pContainer ? (pIcon->pContainer->bIsHorizontal ? pIcon->iImageHeight : pIcon->iImageWidth) / pIcon->fHeight : 1.)
 
51
 
 
52
 
48
53
/** Get the type of an icon according to its content (launcher, appli, applet). This can be different from its group.
49
54
*@param icon the icon.
50
55
*@return the type of the icon.
97
102
*/
98
103
Icon *cairo_dock_get_last_icon (GList *pIconList);
99
104
 
100
 
/*
101
 
*Renvoie la 1ere icon a etre dessinee dans un dock (qui n'est pas forcement la 1ere icon de la liste, si l'utilisateur a scrolle).
102
 
*@param pDock le dock.
103
 
*@return la 1ere icon a etre dessinee, ou NULL si la liste is vide.
104
 
*/
105
 
Icon *cairo_dock_get_first_drawn_icon (CairoDock *pDock);
106
 
 
107
 
/*
108
 
*Renvoie la derniere icon a etre dessinee dans un dock (qui n'est pas forcement la derniere icon de la liste, si l'utilisateur a scrolle).
109
 
*@param pDock le dock.
110
 
*@return la derniere icon a etre dessinee, ou NULL si la liste is vide.
111
 
*/
112
 
Icon *cairo_dock_get_last_drawn_icon (CairoDock *pDock);
113
 
 
114
105
/** Get the first icon of a given group.
115
106
*@param pIconList a list of icons.
116
107
*@param iGroup the group of icon.
141
132
*/
142
133
Icon* cairo_dock_get_last_icon_of_order (GList *pIconList, CairoDockIconGroup iGroup);
143
134
 
144
 
Icon* cairo_dock_get_last_icon_until_order (GList *pIconList, CairoDockIconGroup iGroup);
145
 
 
146
135
Icon* cairo_dock_get_first_icon_of_true_type (GList *pIconList, CairoDockIconTrueType iType);
147
136
 
148
137
/** Get the currently pointed icon in a list of icons.
247
236
 
248
237
void cairo_dock_move_icon_after_icon (CairoDock *pDock, Icon *icon1, Icon *icon2);
249
238
 
250
 
/** Run an action on all the icons of a given group. The action can even destroy or remove the icon from the list.
251
 
*@param pIconList a list of icons.
252
 
*@param iGroup the group.
253
 
*@param pFuntion the callback.
254
 
*@param data data passed as a parameter of the callback.
255
 
*@return the first automatic separator with another group, or NULL if there is none.
256
 
*/
257
 
Icon *cairo_dock_foreach_icons_of_type (GList *pIconList, CairoDockIconGroup iGroup, CairoDockForeachIconFunc pFuntion, gpointer data);
258
 
 
259
239
/** Update the container's name of an icon with the name of a dock. In the case of a launcher or an applet, the conf file is updated too.
260
240
*@param icon an icon.
261
241
*@param cNewParentDockName the name of its new dock.
262
242
*/
263
243
void cairo_dock_update_icon_s_container_name (Icon *icon, const gchar *cNewParentDockName);
264
244
 
265
 
/** Make an icon static. Static icon are not animated when mouse hovers them.
 
245
/** Make an icon static or not. Static icons are not animated when mouse hovers them.
266
246
*@param icon an icon.
 
247
*@param bStatic static or not.
267
248
*/
268
 
#define cairo_dock_set_icon_static(icon) ((icon)->bStatic = TRUE)
 
249
#define cairo_dock_set_icon_static(icon, _bStatic) (icon)->bStatic = _bStatic
269
250
 
270
251
/** Make an icon always visible, even when the dock is hidden.
271
252
*@param icon an icon.
272
253
*@param bAlwaysVisible whether the icon is always visible or not.
273
254
*/
274
 
#define cairo_dock_set_icon_always_visible(icon, bAlwaysVisible) ((bAlwaysVisible)->bStatic = bAlwaysVisible)
 
255
#define cairo_dock_set_icon_always_visible(icon, _bAlwaysVisible) (icon)->bAlwaysVisible = _bAlwaysVisible
275
256
 
276
257
/** Set the label of an icon. If it has a sub-dock, it is renamed (the name is possibly altered to stay unique). The label buffer is updated too.
277
258
*@param cIconName the new label of the icon. You can even pass pIcon->cName.
319
300
gchar *cairo_dock_cut_string (const gchar *cString, int iNbCaracters);
320
301
 
321
302
 
 
303
GdkPixbuf *cairo_dock_icon_buffer_to_pixbuf (Icon *icon);
 
304
 
 
305
 
322
306
G_END_DECLS
323
307
#endif