[Touch-packages] [Bug 1467886] Re: expandable widget cannot collapse widgets to the number defined by "collapsed-widgets"

2016-06-14 Thread Pawel Stolowski
** Branch linked: lp:~stolowski/unity-scopes-api/fix-expandable-widget-
doc

** Changed in: unity-scopes-api (Ubuntu)
   Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-shell 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:
  In Progress
Status in unity-scopes-shell package in Ubuntu:
  Invalid
Status in unity8 package in Ubuntu:
  Invalid

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1467886] Re: expandable widget cannot collapse widgets to the number defined by "collapsed-widgets"

2016-06-14 Thread Pawel Stolowski
** Changed in: unity-scopes-api (Ubuntu)
   Importance: Undecided => Medium

** Changed in: unity-scopes-api (Ubuntu)
 Assignee: (unassigned) => Pawel Stolowski (stolowski)

** Changed in: unity8 (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-shell 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:
  Confirmed
Status in unity-scopes-shell package in Ubuntu:
  Invalid
Status in unity8 package in Ubuntu:
  Invalid

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1467886] Re: expandable widget cannot collapse widgets to the number defined by "collapsed-widgets"

2016-01-15 Thread Albert Astals Cid
I think the problem is that the documentation doesn't match what the
code does.

The internal documentation we have in the code says

This widget shows a list of widgets defined in widgetData["widgets"]
Those widgets can be collapsed or uncollapsed. When uncollapsed
all the widgets are shown, when collapsed only the first
widgetData["collapsed-widgets"] are shown. It has a title that comes
in via widgetData["title"]. This widget expands all child widgets
when initialized by specifying widgetData["expanded"] == true.
It's in unexpanded mode by default.

There's nothing about 0 being a magic number and also collapsed-widgets
is the number of widgets that will still be shown when the widget is
collapsed.

I think it's best to update the documentation to match the code since
there's a few scopes using the widget already.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-shell 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:
  Confirmed
Status in unity-scopes-shell package in Ubuntu:
  Invalid
Status in unity8 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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1467886] Re: expandable widget cannot collapse widgets to the number defined by "collapsed-widgets"

2016-01-15 Thread Pawel Stolowski
** Also affects: unity8 (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: unity-scopes-shell (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-shell 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:
  Confirmed
Status in unity-scopes-shell package in Ubuntu:
  Invalid
Status in unity8 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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1467886] Re: expandable widget cannot collapse widgets to the number defined by "collapsed-widgets"

2015-09-07 Thread Michi Henning
** Also affects: unity-scopes-shell (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-shell 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:
  Confirmed
Status in unity-scopes-shell 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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1467886] Re: expandable widget cannot collapse widgets to the number defined by "collapsed-widgets"

2015-06-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: unity-scopes-api (Ubuntu)
   Status: New => Confirmed

-- 
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:
  Confirmed

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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp