~macslow/unity/backported-remote-add-to-5.0

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/LensView.cpp

Merging with upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
 
202
202
  no_results_ = new nux::StaticCairoText("", NUX_TRACKER_LOCATION);
203
203
  no_results_->SetTextColor(nux::color::White);
 
204
  no_results_->SetVisible(false);
204
205
  scroll_layout_->AddView(no_results_, 1, nux::MINOR_POSITION_CENTER, nux::MINOR_SIZE_MATCHCONTENT);
205
206
 
206
207
  fscroll_view_ = new LensScrollView(new PlacesVScrollBar(NUX_TRACKER_LOCATION), NUX_TRACKER_LOCATION);
404
405
 
405
406
    no_results_active_ = true;
406
407
    no_results_->SetText(markup.str());
 
408
    no_results_->SetVisible(true);
407
409
  }
408
410
  else if (count && no_results_active_)
409
411
  {
411
413
 
412
414
    no_results_active_ = false;
413
415
    no_results_->SetText("");
 
416
    no_results_->SetVisible(false);
414
417
  }
415
418
}
416
419
 
421
424
    scroll_layout_->SetContentDistribution(nux::MAJOR_POSITION_START);
422
425
    no_results_active_ = false;
423
426
    no_results_->SetText("");
 
427
    no_results_->SetVisible(false);
424
428
  }
425
429
}
426
430