~townsend/unity/fix-dash-page-up-down

« back to all changes in this revision

Viewing changes to src/LauncherIcon.cpp

  • Committer: Neil Jagdish Patel
  • Date: 2010-11-09 18:26:09 UTC
  • mfrom: (572.1.33 unity)
  • mto: (572.1.56 unity-3.0)
  • mto: This revision was merged to the branch mainline in revision 573.
  • Revision ID: neil.patel@canonical.com-20101109182609-dqu51lkgrn6ifd02
[merge] trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
  _show_time.tv_sec = 0;
25
25
  _hide_time.tv_sec = 0;
26
26
  _running_time.tv_sec = 0;
 
27
  _urgent_time.tv_sec = 0;
27
28
 
28
29
  _show_time.tv_usec = 0;
29
30
  _hide_time.tv_usec = 0;
30
31
  _running_time.tv_usec = 0;
 
32
  _urgent_time.tv_usec = 0;
31
33
 
32
34
  _active  = false;
33
35
  _running = false;
34
36
  _visible = false;
 
37
  _urgent  = false;
35
38
 
36
39
  _background_color = nux::Color::White;
37
40
  _mouse_inside = false;
201
204
  return _running_time;
202
205
}
203
206
 
 
207
struct timeval LauncherIcon::UrgentTime ()
 
208
{
 
209
  return _urgent_time;
 
210
}
 
211
 
204
212
void
205
213
LauncherIcon::SetVisible (bool visible)
206
214
{
243
251
  needs_redraw.emit (this);
244
252
}
245
253
 
 
254
void LauncherIcon::SetUrgent (bool urgent)
 
255
{
 
256
  if (urgent == _urgent)
 
257
    return;
 
258
  
 
259
  _urgent = urgent;
 
260
  
 
261
  if (urgent)
 
262
      gettimeofday (&_urgent_time, NULL);
 
263
  
 
264
  needs_redraw.emit (this);
 
265
}
246
266
 
247
267
void LauncherIcon::Remove ()
248
268
{
291
311
{
292
312
  return _running;
293
313
}
 
314
 
 
315
bool
 
316
LauncherIcon::Urgent ()
 
317
{
 
318
  return _urgent;
 
319
}