~mial/ubuntu/oneiric/unity/bug-791810

« back to all changes in this revision

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

  • Committer: Jay Taoko
  • Date: 2011-10-21 03:44:20 UTC
  • mfrom: (1721.1.4 unity-porting-nux20)
  • Revision ID: jay.taoko@canonical.com-20111021034420-ucz8y104ztr15944
Ported Unity to Nux 2.0

- The Button class in Nux no longer has properties. Refer to Nux API for more details on the signals and functions of that class

- ProcessEvent member functions have been removed (remnant of the former event architecture)

- Removed former Focus API

- ComputeLayout2 has been renamed ComputeContentSize

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
 
115
115
      PreviewBasicButton* primary_button = new PreviewBasicButton(preview_->primary_action_name.c_str(), NUX_TRACKER_LOCATION);
116
116
      //FIXME - add secondary action when we have the backend for it
117
 
      primary_button->activated.connect ([&] (nux::View *view) { UriActivated.emit (preview_->primary_action_uri); });
 
117
      primary_button->state_change.connect ([&] (nux::View *view) { UriActivated.emit (preview_->primary_action_uri); });
118
118
 
119
119
 
120
120
      nux::HLayout *large_container = new nux::HLayout(NUX_TRACKER_LOCATION);
177
177
    GfxContent.PopClippingRectangle();
178
178
  }
179
179
 
180
 
  long int PreviewMusicAlbum::ProcessEvent(nux::IEvent& ievent, long int TraverseInfo, long int ProcessEventInfo) {
181
 
    return PreviewBase::ProcessEvent(ievent, TraverseInfo, ProcessEventInfo);
182
 
  }
183
 
 
184
180
  void PreviewMusicAlbum::PostDraw(nux::GraphicsEngine& GfxContext, bool force_draw) {
185
181
    PreviewBase::PostDraw(GfxContext, force_draw);
186
182
  }