~ubuntu-branches/ubuntu/vivid/cairo-dock/vivid

« back to all changes in this revision

Viewing changes to src/gldit/cairo-dock-task.c

  • Committer: Matthieu Baerts
  • Date: 2013-03-25 23:33:47 UTC
  • mfrom: (1.1.31)
  • Revision ID: matttbe@gmail.com-20130325233347-tntqszmhp5ji5cj0
Tags: 3.2.0-0ubuntu1
* New upstream release.
* Upstream ChangeLog:
  - Enable the Indicator-Generic by default on a Cairo-Dock session under
    Ubuntu
  - Removed the deprecated option 'hide on fullscreen'
  - Task: fixed a bug in cairo_dock_stop_task
  - BSD port: fixed some compilation and linking problems
  - Taskbar: fixed a bug where an icon didn't stop demanding the attention
  - Docks: when changing the alignment of the main dock, correctly update
    the dock
  - Removed the need for pangox (was not used)
  - Drop on container: add URI target before the text target, or we will
    get the link text instead of the link URI in Konqueror (other browsers
    don't have this problem)
  - If an applet crashed the dock when launching it, this applet was
    not blacklisted
  - GUI: fixed a crash in the ModuleWidget class
  - Core: separated gldi-config.h in 2 parts, so that the one that is
    installed doesn't contain any architecture-dependant value
  - po: Imported translations from Launchpad
* debian/control:
  - Mutter is now better supported by the dock: added on the recommended
    list
* debian/rules:
  - CMake flag: replaced 'yes' by 'ON'

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
                }
278
278
                pTask->bIsRunning = FALSE;  // since we didn't go through the 'update'
279
279
        }
 
280
        else
 
281
        {
 
282
                if (pTask->pThread && pTask->pCond && g_mutex_trylock (pTask->pMutex))  // the thread is sleeping, awake it and let it exit.
 
283
                {
 
284
                        g_atomic_int_set (&pTask->bDiscard, 1);
 
285
                        pTask->bRunThread = TRUE;
 
286
                        g_cond_signal (pTask->pCond);
 
287
                        g_mutex_unlock (pTask->pMutex);
 
288
                        g_thread_join (pTask->pThread);  // unref the thread
 
289
                        pTask->pThread = NULL;
 
290
                        g_atomic_int_set (&pTask->bDiscard, 0);
 
291
                }
 
292
        }
280
293
}
281
294
 
282
295