Logo Search packages:      
Sourcecode: cairo-dock version File versions

#define CD_APPLET_RELOAD_BEGIN

Value:

gboolean reload (GKeyFile *pKeyFile, gchar *cConfFilePath, CairoContainer *pNewContainer) \
{ \
      cd_message ("%s (%s)\n", __func__, cConfFilePath); \
      g_return_val_if_fail (pNewContainer != NULL, FALSE); \
      CairoContainer *pOldContainer = myContainer; \
      gboolean bContainerTypeChanged = (myContainer == NULL || myContainer->iType != pNewContainer->iType); \
      myContainer = pNewContainer; \
      myDock = (CAIRO_DOCK_IS_DOCK (pNewContainer) ? CAIRO_DOCK (pNewContainer) : NULL); \
      myDesklet = (CAIRO_DOCK_IS_DESKLET (pNewContainer) ? CAIRO_DESKLET (pNewContainer) : NULL); \
      if (pKeyFile != NULL) \
            read_conf_file (pKeyFile, cConfFilePath); \
      if (myDrawContext != NULL) \
            cairo_destroy (myDrawContext); \
      if (CAIRO_DOCK_IS_DOCK (myContainer)) \
      { \
            myDrawContext = cairo_create (myIcon->pIconBuffer); \
            g_return_val_if_fail (cairo_status (myDrawContext) == CAIRO_STATUS_SUCCESS, FALSE); \
      } \
      else \
            myDrawContext = NULL;
Debut de la fonction de rechargement de l'applet.

Definition at line 363 of file cairo-dock-applet-facility.h.


Generated by  Doxygen 1.6.0   Back to index