38
39
CD_APPLET_RESET_CONFIG_BEGIN
39
40
g_free (myConfig.cDropIndicatorImageName);
40
41
g_free (myConfig.cHoverIndicatorImageName);
42
42
CD_APPLET_RESET_CONFIG_END
45
45
//\_________________ Here you have to free all ressources allocated for myData. This one will be reseted to 0 at the end of this function. This function is called when your applet is stopped, in the very end.
46
void cd_drop_indicator_free_buffers (void)
48
if (myData.iDropIndicatorTexture != 0)
50
_cairo_dock_delete_texture (myData.iDropIndicatorTexture);
51
myData.iDropIndicatorTexture = 0;
54
if (myData.pDropIndicatorSurface != NULL)
56
cairo_surface_destroy (myData.pDropIndicatorSurface);
57
myData.pDropIndicatorSurface = NULL;
60
if (myData.iHoverIndicatorTexture != 0)
62
_cairo_dock_delete_texture (myData.iHoverIndicatorTexture);
63
myData.iHoverIndicatorTexture = 0;
66
if (myData.pHoverIndicatorSurface != NULL)
68
cairo_surface_destroy (myData.pHoverIndicatorSurface);
69
myData.pHoverIndicatorSurface = NULL;
73
void _reser_data_on_one_dock (gchar *cDockName, CairoDock *pDock, gpointer data)
46
static void _reset_data_on_one_dock (const gchar *cDockName, CairoDock *pDock, gpointer data)
75
48
CDDropIndicatorData *pData = CD_APPLET_GET_MY_DOCK_DATA (pDock);
52
CD_APPLET_SET_MY_DOCK_DATA (pDock, NULL);
80
54
CD_APPLET_RESET_DATA_BEGIN
81
/// free our data on all docks ..
82
cairo_dock_foreach_docks ((GHFunc) _reser_data_on_one_dock, NULL);
55
cairo_dock_foreach_docks ((GHFunc) _reset_data_on_one_dock, NULL);
84
57
cd_drop_indicator_free_buffers ();