← Back to team overview

touch-packages team mailing list archive

[Bug 1467886] [NEW] expandable widget cannot collapse widgets to the number defined by "collapsed-widgets"

 

Public bug reported:

https://developer.ubuntu.com/api/scopes/cpp/sdk-15.04/previewwidgets/

I tried to used the example code shown in the above link:

PreviewWidget expandable("exp", "expandable");
expandable.add_attribute_value("title", Variant("This is an expandable widget"));
expandable.add_attribute_value("collapsed-widgets", Variant(0));
PreviewWidget w1("w1", "text");
w1.add_attribute_value("title", Variant("Subwidget 1"));
w1.add_attribute_value("text", Variant("A text"));
PreviewWidget w2("w2", "text");
w2.add_attribute_value("title", Variant("Subwidget 2"));
w2.add_attribute_value("text", Variant("A text"));
expandable.add_widget(w1);
expandable.add_widget(w2);

regardless of whatever number is defined in "collapsed-widgets", it
always shows all of the widgets there.

Thanks & best regards,
XiaoGuo

** Affects: unity-scopes-api (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Unity Scope Tool_787.png"
   https://bugs.launchpad.net/bugs/1467886/+attachment/4419294/+files/Unity%20Scope%20Tool_787.png

** Description changed:

  https://developer.ubuntu.com/api/scopes/cpp/sdk-15.04/previewwidgets/
  
  I tried to used the example code shown in the above link:
  
  PreviewWidget expandable("exp", "expandable");
  expandable.add_attribute_value("title", Variant("This is an expandable widget"));
  expandable.add_attribute_value("collapsed-widgets", Variant(0));
  PreviewWidget w1("w1", "text");
  w1.add_attribute_value("title", Variant("Subwidget 1"));
  w1.add_attribute_value("text", Variant("A text"));
  PreviewWidget w2("w2", "text");
  w2.add_attribute_value("title", Variant("Subwidget 2"));
  w2.add_attribute_value("text", Variant("A text"));
  expandable.add_widget(w1);
  expandable.add_widget(w2);
  
- regardless of what number is defined in "collapsed-widgets", it always
- shows all of the widgets there.
+ regardless of whatever number is defined in "collapsed-widgets", it
+ always shows all of the widgets there.
  
  Thanks & best regards,
  XiaoGuo

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1467886

Title:
  expandable widget cannot collapse widgets to the number defined by
  "collapsed-widgets"

Status in unity-scopes-api package in Ubuntu:
  New

Bug description:
  https://developer.ubuntu.com/api/scopes/cpp/sdk-15.04/previewwidgets/

  I tried to used the example code shown in the above link:

  PreviewWidget expandable("exp", "expandable");
  expandable.add_attribute_value("title", Variant("This is an expandable widget"));
  expandable.add_attribute_value("collapsed-widgets", Variant(0));
  PreviewWidget w1("w1", "text");
  w1.add_attribute_value("title", Variant("Subwidget 1"));
  w1.add_attribute_value("text", Variant("A text"));
  PreviewWidget w2("w2", "text");
  w2.add_attribute_value("title", Variant("Subwidget 2"));
  w2.add_attribute_value("text", Variant("A text"));
  expandable.add_widget(w1);
  expandable.add_widget(w2);

  regardless of whatever number is defined in "collapsed-widgets", it
  always shows all of the widgets there.

  Thanks & best regards,
  XiaoGuo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1467886/+subscriptions


Follow ups

References