~brandontschaefer/unity/alt-grave-ordering-fix

« back to all changes in this revision

Viewing changes to dash/CoverflowResultView.cpp

  • Committer: Jay Taoko
  • Date: 2012-09-18 11:55:33 UTC
  • mfrom: (2696.3.6 unity.dash-to-preview)
  • mto: This revision was merged to the branch mainline in revision 2719.
  • Revision ID: jay.taoko@canonical.com-20120918115533-ksgl1o12m1wfxy9r
* Merged with Unity trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
  int size = model_->Items().size();
136
136
 
137
137
  ubus_.SendMessage(UBUS_DASH_PREVIEW_INFO_PAYLOAD, 
138
 
                    g_variant_new("(iii)", 0, index, size - index));
 
138
                    g_variant_new("(iiii)", 0, 0, index, size - index));
139
139
}
140
140
 
141
141
CoverflowResultView::Impl::Impl(CoverflowResultView *parent)
193
193
      int right_results = num_results ? (num_results - current_index) - 1 : 0;
194
194
      parent_->UriActivated.emit(GetUriForIndex(current_index), ActivateType::PREVIEW);
195
195
      ubus_.SendMessage(UBUS_DASH_PREVIEW_INFO_PAYLOAD, 
196
 
                              g_variant_new("(iii)", 0, left_results, right_results));
 
196
                              g_variant_new("(iiii)", 0, 0, left_results, right_results));
197
197
    }
198
198
  });
199
199
}
269
269
  nux::Geometry base = GetGeometry();
270
270
  GfxContext.PushClippingRectangle(base);
271
271
 
 
272
  if (RedirectedAncestor())
 
273
  {
 
274
    // This is necessary when doing redirected rendering. Clean the area below this view.
 
275
    unsigned int current_alpha_blend;
 
276
    unsigned int current_src_blend_factor;
 
277
    unsigned int current_dest_blend_factor;
 
278
    GfxContext.GetRenderStates().GetBlend(current_alpha_blend, current_src_blend_factor, current_dest_blend_factor);
 
279
 
 
280
    GfxContext.GetRenderStates().SetBlend(false);
 
281
    GfxContext.QRP_Color(GetX(), GetY(), GetWidth(), GetHeight(), nux::Color(0.0f, 0.0f, 0.0f, 0.0f));
 
282
 
 
283
    GfxContext.GetRenderStates().SetBlend(current_alpha_blend, current_src_blend_factor, current_dest_blend_factor);
 
284
  }
 
285
  
272
286
  if (GetCompositionLayout())
273
287
  {
274
288
    nux::Geometry geo = GetCompositionLayout()->GetGeometry();