Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-24 Thread James Cameron
Can't see OSK in context in bug #3639, but it probably means

"On-screen keyboard"

https://en.wikipedia.org/wiki/Virtual_keyboard
https://en.wikipedia.org/wiki/OSK

On Thu, Feb 25, 2016 at 04:28:26AM +0530, Utkarsh Tiwari wrote:
> Hi,
>     I was going through this bug on [1]bugs.sugarlabs.org -> [2]https://
> bugs.sugarlabs.org/ticket/3639 and I came across the keyword "OSK". Could
> anyone please tell me it's full form and what does it mean?
> 
> Regards,
> Utkarsh Tiwari
> 
> On Thu, Feb 25, 2016 at 2:39 AM, Utkarsh Tiwari 
> <[3]iamutkarshtiw...@gmail.com>
> wrote:
> 
> Here is the link to the PR as requested by Mr. Sam Parkinson.
> @everyone Let me know you suggestions and reviews on this.
> 
> [4]https://github.com/sugarlabs/browse-activity/pull/24
> 
> regards,
> Utkarsh Tiwari
> 
> On 2/23/16, Utkarsh Tiwari <[5]iamutkarshtiw...@gmail.com> wrote:
> > @Tony @Gonzalo I have created a new
> > (src/graphics/progresstoolbutton.py) script (which is a blend of
> > ToolButton and ProgressIcon)  in "sugar-toolkit-gtk3" which could be
> > imported in any other activity (not only 'Browse') if there is a need
> > to implement a SugarToolButton as a ProgressIcon. ;)
> >
> > regards,
> > Utkarsh Tiwari
> >
> > On 2/23/16, Gonzalo Odiard <[6]godi...@gmail.com> wrote:
> >> It's difficult have the api for widgets right in the first run.
> >> If this widget will be used only in the Browse activity, probably would
> >> be
> >> better
> >> include it in the activity instead of in the toolkit.
> >>
> >> Gonzalo
> >>
> >> On Mon, Feb 22, 2016 at 8:49 PM, Tony Anderson 
> <[7]tony_ander...@usa.net
> >
> >> wrote:
> >>
> >>> Hi,
> >>>
> >>> Isn't it possible and desirable for Browse to import this feature from
> >>> sugar-toolkit-gtk3?
> >>>
> >>> Tony
> >>>
> >>>
> >>> On 02/23/2016 03:05 AM, James Cameron wrote:
> >>>
>  You can't send a single PR to sugar-build for changes to both Browse
>  and sugar-toolkit-gtk3.  You have to use multiple PR.  Add
>  cross-references.
> 
>  On Mon, Feb 22, 2016 at 07:40:50PM +0530, Utkarsh Tiwari wrote:
> 
> > @James, I'll surely implement those fixes you listed above before
> > sending in a
> > PR. :)
> >
> > @everybody I added a new (progresstoolbutton.py) file to
> > "sugar-toolkit-gtk3/
> > src/graphics/" and did some changes to "browse/"(webtoolbar.py and
> > downloadmanager.py) files. Shall I send a PR to each repository
> > (browse
> > and
> > sugar-toolkit-gtk3) individually or shall I send a single PR to
> > "sugar-build"
> > repo ?
> >
> > thanks,
> > Utkarsh Tiwari
> >
> > On Mon, Feb 22, 2016 at 2:27 PM, James Cameron <[1][8]
> qu...@laptop.org>
> > wrote:
> >
> >      The tooltip shows 0.0 with an empty outline just after it shows
> > 1.0
> >      and full icon.
> >
> >      Could this be changed slightly; continue to show 1.0 and full
> > until
> >      the Download Completed question is answered?
> >          On Mon, Feb 22, 2016 at 08:44:25AM +, Sam P. wrote:
> >      > This looks great!  Please send a patch and we can review it!
> >      >
> >      > On Sun, Feb 21, 2016, 05:29 Utkarsh Tiwari <[1][2]
> >      [9]iamutkarshtiw...@gmail.com>
> >      > wrote:
> >      >
> >      >     Hello everyone,
> >      >                               I finally managed to pull
> through
> > 50% of
> >      the
> >      >     downloadManagerIcon integration task. Here is the gif of
> > all
> > what I
> >      did
> >      >     till now -> [2][3][10]http://imgur.com/zS0W9dG
> >      >     There is still a long way to go. Reviews on this would be
> > helpful :)
> >      >
> >      >     regards,
> >      >     Utkarsh Tiwari
> >      >
> >      >
> >      >
> >      >     On Sat, Feb 13, 2016 at 8:36 PM, Utkarsh Tiwari <[3]
> >      >     [4][11]iamutkarshtiw...@gmail.com> wrote:
> >      >
> >      >         I need to update a toolbutton in webtoolbar as the
> > download
> >      progresses
> >      >         in background. Could anyone please guide me how to go
> > about it?
> >      >
> >      >         On 2/11/16, Utkarsh Tiwari <[4][5]
> > [12]iamutkarshtiw...@gmail.com>
> >      wrote:
> >      >         > @James As mentioned, I tried making a blend of
> > 'progressIcon' &
> >      >         > 'ToolButton' by making some changes to the
> 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-24 Thread Utkarsh Tiwari
Hi,
I was going through this bug on bugs.sugarlabs.org ->
https://bugs.sugarlabs.org/ticket/3639 and I came across the keyword "OSK".
Could anyone please tell me it's full form and what does it mean?

Regards,
Utkarsh Tiwari

On Thu, Feb 25, 2016 at 2:39 AM, Utkarsh Tiwari 
wrote:

> Here is the link to the PR as requested by Mr. Sam Parkinson.
> @everyone Let me know you suggestions and reviews on this.
>
> https://github.com/sugarlabs/browse-activity/pull/24
>
> regards,
> Utkarsh Tiwari
>
> On 2/23/16, Utkarsh Tiwari  wrote:
> > @Tony @Gonzalo I have created a new
> > (src/graphics/progresstoolbutton.py) script (which is a blend of
> > ToolButton and ProgressIcon)  in "sugar-toolkit-gtk3" which could be
> > imported in any other activity (not only 'Browse') if there is a need
> > to implement a SugarToolButton as a ProgressIcon. ;)
> >
> > regards,
> > Utkarsh Tiwari
> >
> > On 2/23/16, Gonzalo Odiard  wrote:
> >> It's difficult have the api for widgets right in the first run.
> >> If this widget will be used only in the Browse activity, probably would
> >> be
> >> better
> >> include it in the activity instead of in the toolkit.
> >>
> >> Gonzalo
> >>
> >> On Mon, Feb 22, 2016 at 8:49 PM, Tony Anderson 
> >> wrote:
> >>
> >>> Hi,
> >>>
> >>> Isn't it possible and desirable for Browse to import this feature from
> >>> sugar-toolkit-gtk3?
> >>>
> >>> Tony
> >>>
> >>>
> >>> On 02/23/2016 03:05 AM, James Cameron wrote:
> >>>
>  You can't send a single PR to sugar-build for changes to both Browse
>  and sugar-toolkit-gtk3.  You have to use multiple PR.  Add
>  cross-references.
> 
>  On Mon, Feb 22, 2016 at 07:40:50PM +0530, Utkarsh Tiwari wrote:
> 
> > @James, I'll surely implement those fixes you listed above before
> > sending in a
> > PR. :)
> >
> > @everybody I added a new (progresstoolbutton.py) file to
> > "sugar-toolkit-gtk3/
> > src/graphics/" and did some changes to "browse/"(webtoolbar.py and
> > downloadmanager.py) files. Shall I send a PR to each repository
> > (browse
> > and
> > sugar-toolkit-gtk3) individually or shall I send a single PR to
> > "sugar-build"
> > repo ?
> >
> > thanks,
> > Utkarsh Tiwari
> >
> > On Mon, Feb 22, 2016 at 2:27 PM, James Cameron <[1]qu...@laptop.org>
> > wrote:
> >
> >  The tooltip shows 0.0 with an empty outline just after it shows
> > 1.0
> >  and full icon.
> >
> >  Could this be changed slightly; continue to show 1.0 and full
> > until
> >  the Download Completed question is answered?
> >  On Mon, Feb 22, 2016 at 08:44:25AM +, Sam P. wrote:
> >  > This looks great!  Please send a patch and we can review it!
> >  >
> >  > On Sun, Feb 21, 2016, 05:29 Utkarsh Tiwari <[1][2]
> >  iamutkarshtiw...@gmail.com>
> >  > wrote:
> >  >
> >  > Hello everyone,
> >  >   I finally managed to pull
> through
> > 50% of
> >  the
> >  > downloadManagerIcon integration task. Here is the gif of
> > all
> > what I
> >  did
> >  > till now -> [2][3]http://imgur.com/zS0W9dG
> >  > There is still a long way to go. Reviews on this would be
> > helpful :)
> >  >
> >  > regards,
> >  > Utkarsh Tiwari
> >  >
> >  >
> >  >
> >  > On Sat, Feb 13, 2016 at 8:36 PM, Utkarsh Tiwari <[3]
> >  > [4]iamutkarshtiw...@gmail.com> wrote:
> >  >
> >  > I need to update a toolbutton in webtoolbar as the
> > download
> >  progresses
> >  > in background. Could anyone please guide me how to go
> > about it?
> >  >
> >  > On 2/11/16, Utkarsh Tiwari <[4][5]
> > iamutkarshtiw...@gmail.com>
> >  wrote:
> >  > > @James As mentioned, I tried making a blend of
> > 'progressIcon' &
> >  > > 'ToolButton' by making some changes to the
> > SugarToolButton
> >  code. Here
> >  > is
> >  > > how the download ProgressIcon @50% completion looks
> > like ->
> >  > > [5][6]http://imgur.com/iBg4Ktr
> >  > >
> >  > > Waiting for your reviews :)
> >  > >
> >  > > On Thu, Feb 11, 2016 at 3:28 PM, Sam P.
> > 
> > wrote:
> >  > >
> >  > >> Hello,
> >  > >>
> >  > >> I believe that it passes all the key word and
> normal
> > arguments
> >  to
> >  > the
> >  > >> superclass constructors.
> >  > >>
> >  > >> Out of 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-22 Thread Gonzalo Odiard
It's difficult have the api for widgets right in the first run.
If this widget will be used only in the Browse activity, probably would be
better
include it in the activity instead of in the toolkit.

Gonzalo

On Mon, Feb 22, 2016 at 8:49 PM, Tony Anderson 
wrote:

> Hi,
>
> Isn't it possible and desirable for Browse to import this feature from
> sugar-toolkit-gtk3?
>
> Tony
>
>
> On 02/23/2016 03:05 AM, James Cameron wrote:
>
>> You can't send a single PR to sugar-build for changes to both Browse
>> and sugar-toolkit-gtk3.  You have to use multiple PR.  Add
>> cross-references.
>>
>> On Mon, Feb 22, 2016 at 07:40:50PM +0530, Utkarsh Tiwari wrote:
>>
>>> @James, I'll surely implement those fixes you listed above before
>>> sending in a
>>> PR. :)
>>>
>>> @everybody I added a new (progresstoolbutton.py) file to
>>> "sugar-toolkit-gtk3/
>>> src/graphics/" and did some changes to "browse/"(webtoolbar.py and
>>> downloadmanager.py) files. Shall I send a PR to each repository (browse
>>> and
>>> sugar-toolkit-gtk3) individually or shall I send a single PR to
>>> "sugar-build"
>>> repo ?
>>>
>>> thanks,
>>> Utkarsh Tiwari
>>>
>>> On Mon, Feb 22, 2016 at 2:27 PM, James Cameron <[1]qu...@laptop.org>
>>> wrote:
>>>
>>>  The tooltip shows 0.0 with an empty outline just after it shows 1.0
>>>  and full icon.
>>>
>>>  Could this be changed slightly; continue to show 1.0 and full until
>>>  the Download Completed question is answered?
>>>  On Mon, Feb 22, 2016 at 08:44:25AM +, Sam P. wrote:
>>>  > This looks great!  Please send a patch and we can review it!
>>>  >
>>>  > On Sun, Feb 21, 2016, 05:29 Utkarsh Tiwari <[1][2]
>>>  iamutkarshtiw...@gmail.com>
>>>  > wrote:
>>>  >
>>>  > Hello everyone,
>>>  >   I finally managed to pull through
>>> 50% of
>>>  the
>>>  > downloadManagerIcon integration task. Here is the gif of all
>>> what I
>>>  did
>>>  > till now -> [2][3]http://imgur.com/zS0W9dG
>>>  > There is still a long way to go. Reviews on this would be
>>> helpful :)
>>>  >
>>>  > regards,
>>>  > Utkarsh Tiwari
>>>  >
>>>  >
>>>  >
>>>  > On Sat, Feb 13, 2016 at 8:36 PM, Utkarsh Tiwari <[3]
>>>  > [4]iamutkarshtiw...@gmail.com> wrote:
>>>  >
>>>  > I need to update a toolbutton in webtoolbar as the
>>> download
>>>  progresses
>>>  > in background. Could anyone please guide me how to go
>>> about it?
>>>  >
>>>  > On 2/11/16, Utkarsh Tiwari <[4][5]
>>> iamutkarshtiw...@gmail.com>
>>>  wrote:
>>>  > > @James As mentioned, I tried making a blend of
>>> 'progressIcon' &
>>>  > > 'ToolButton' by making some changes to the
>>> SugarToolButton
>>>  code. Here
>>>  > is
>>>  > > how the download ProgressIcon @50% completion looks
>>> like ->
>>>  > > [5][6]http://imgur.com/iBg4Ktr
>>>  > >
>>>  > > Waiting for your reviews :)
>>>  > >
>>>  > > On Thu, Feb 11, 2016 at 3:28 PM, Sam P. 
>>> wrote:
>>>  > >
>>>  > >> Hello,
>>>  > >>
>>>  > >> I believe that it passes all the key word and normal
>>> arguments
>>>  to
>>>  > the
>>>  > >> superclass constructors.
>>>  > >>
>>>  > >> Out of interest, why are you using a Gtk drawing area
>>> as an
>>>  > additional
>>>  > >> base class?  Every widget (even the tool button) has
>>> the draw
>>>  > signal.  Is
>>>  > >> this what you are using it for or is there something
>>> else?
>>>  > >>
>>>  > >> Thanks,
>>>  > >> Sam
>>>  > >>
>>>  > >> On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari <[6]
>>>  > [7]iamutkarshtiw...@gmail.com>
>>>  > >> wrote:
>>>  > >>
>>>  > >>> What does the line "GObject.GObject.__init__(self,
>>> **kwargs)"
>>>  > exactly
>>>  > >>> does in the following gist?
>>>  > >>>
>>>  > >>> [7][8]https://gist.github.com/iamutkarshtiwari/
>>>  5024762d0e8924b52085
>>>  > >>>
>>>  > >>> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron <[8][9]
>>>  qu...@laptop.org>
>>>  > wrote:
>>>  > >>>
>>>  >  Thanks.  Yes, the position is as I described.
>>>  > 
>>>  >  Your question puzzles me.  I didn't think there was
>>> any
>>>  ambiguity
>>>  > or
>>>  >  doubt.  It is unfortunate that I'm the only one who
>>> has
>>>  posted
>>>  > about
>>>  >  the positioning of this design change.
>>>  > 
>>>  >  Is it because 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-22 Thread Tony Anderson

Hi,

Isn't it possible and desirable for Browse to import this feature from 
sugar-toolkit-gtk3?


Tony

On 02/23/2016 03:05 AM, James Cameron wrote:

You can't send a single PR to sugar-build for changes to both Browse
and sugar-toolkit-gtk3.  You have to use multiple PR.  Add cross-references.

On Mon, Feb 22, 2016 at 07:40:50PM +0530, Utkarsh Tiwari wrote:

@James, I'll surely implement those fixes you listed above before sending in a
PR. :)

@everybody I added a new (progresstoolbutton.py) file to "sugar-toolkit-gtk3/
src/graphics/" and did some changes to "browse/"(webtoolbar.py and
downloadmanager.py) files. Shall I send a PR to each repository (browse and
sugar-toolkit-gtk3) individually or shall I send a single PR to "sugar-build"
repo ?

thanks,
Utkarsh Tiwari

On Mon, Feb 22, 2016 at 2:27 PM, James Cameron <[1]qu...@laptop.org> wrote:

 The tooltip shows 0.0 with an empty outline just after it shows 1.0
 and full icon.

 Could this be changed slightly; continue to show 1.0 and full until
 the Download Completed question is answered?

 On Mon, Feb 22, 2016 at 08:44:25AM +, Sam P. wrote:

 > This looks great!  Please send a patch and we can review it!
 >
 > On Sun, Feb 21, 2016, 05:29 Utkarsh Tiwari <[1][2]
 iamutkarshtiw...@gmail.com>
 > wrote:
 >
 > Hello everyone,
 >   I finally managed to pull through 50% of
 the
 > downloadManagerIcon integration task. Here is the gif of all what I
 did
 > till now -> [2][3]http://imgur.com/zS0W9dG
 > There is still a long way to go. Reviews on this would be helpful :)
 >
 > regards,
 > Utkarsh Tiwari
 >
 >
 >
 > On Sat, Feb 13, 2016 at 8:36 PM, Utkarsh Tiwari <[3]
 > [4]iamutkarshtiw...@gmail.com> wrote:
 >
 > I need to update a toolbutton in webtoolbar as the download
 progresses
 > in background. Could anyone please guide me how to go about it?
 >
 > On 2/11/16, Utkarsh Tiwari <[4][5]iamutkarshtiw...@gmail.com>
 wrote:
 > > @James As mentioned, I tried making a blend of 'progressIcon' &
 > > 'ToolButton' by making some changes to the SugarToolButton
 code. Here
 > is
 > > how the download ProgressIcon @50% completion looks like ->
 > > [5][6]http://imgur.com/iBg4Ktr
 > >
 > > Waiting for your reviews :)
 > >
 > > On Thu, Feb 11, 2016 at 3:28 PM, Sam P.  wrote:
 > >
 > >> Hello,
 > >>
 > >> I believe that it passes all the key word and normal arguments
 to
 > the
 > >> superclass constructors.
 > >>
 > >> Out of interest, why are you using a Gtk drawing area as an
 > additional
 > >> base class?  Every widget (even the tool button) has the draw
 > signal.  Is
 > >> this what you are using it for or is there something else?
 > >>
 > >> Thanks,
 > >> Sam
 > >>
 > >> On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari <[6]
 > [7]iamutkarshtiw...@gmail.com>
 > >> wrote:
 > >>
 > >>> What does the line "GObject.GObject.__init__(self, **kwargs)"
 > exactly
 > >>> does in the following gist?
 > >>>
 > >>> [7][8]https://gist.github.com/iamutkarshtiwari/
 5024762d0e8924b52085
 > >>>
 > >>> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron <[8][9]
 qu...@laptop.org>
 > wrote:
 > >>>
 >  Thanks.  Yes, the position is as I described.
 > 
 >  Your question puzzles me.  I didn't think there was any
 ambiguity
 > or
 >  doubt.  It is unfortunate that I'm the only one who has
 posted
 > about
 >  the positioning of this design change.
 > 
 >  Is it because you have an alternate suggestion?
 > 
 >  Good to hear combining the widgets worked.  Looking forward
 to
 > seeing
 >  a patch or pull request.
 > 
 >  On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari
 wrote:
 >  > @James Is this the icon position you were talking about as
 shown
 > in
 >  > the
 >  > attachment below? Your hint for using ProgressIcon
 alongwith
 >  Toolbutton worked!
 >  > ;)
 >  >
 >  > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1][9]
 > [10]qu...@laptop.org>
 >  wrote:
 >  >
 > 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-22 Thread James Cameron
You can't send a single PR to sugar-build for changes to both Browse
and sugar-toolkit-gtk3.  You have to use multiple PR.  Add cross-references.

On Mon, Feb 22, 2016 at 07:40:50PM +0530, Utkarsh Tiwari wrote:
> @James, I'll surely implement those fixes you listed above before sending in a
> PR. :)
> 
> @everybody I added a new (progresstoolbutton.py) file to "sugar-toolkit-gtk3/
> src/graphics/" and did some changes to "browse/"(webtoolbar.py and
> downloadmanager.py) files. Shall I send a PR to each repository (browse and
> sugar-toolkit-gtk3) individually or shall I send a single PR to "sugar-build"
> repo ?
> 
> thanks,
> Utkarsh Tiwari
> 
> On Mon, Feb 22, 2016 at 2:27 PM, James Cameron <[1]qu...@laptop.org> wrote:
> 
> The tooltip shows 0.0 with an empty outline just after it shows 1.0
> and full icon.
> 
> Could this be changed slightly; continue to show 1.0 and full until
> the Download Completed question is answered?
>
> On Mon, Feb 22, 2016 at 08:44:25AM +, Sam P. wrote:
> > This looks great!  Please send a patch and we can review it!
> >
> > On Sun, Feb 21, 2016, 05:29 Utkarsh Tiwari <[1][2]
> iamutkarshtiw...@gmail.com>
> > wrote:
> >
> >     Hello everyone,
> >                               I finally managed to pull through 50% of
> the
> >     downloadManagerIcon integration task. Here is the gif of all what I
> did
> >     till now -> [2][3]http://imgur.com/zS0W9dG  
> >     There is still a long way to go. Reviews on this would be helpful :)
> >
> >     regards,
> >     Utkarsh Tiwari
> >
> >      
> >
> >     On Sat, Feb 13, 2016 at 8:36 PM, Utkarsh Tiwari <[3]
> >     [4]iamutkarshtiw...@gmail.com> wrote:
> >
> >         I need to update a toolbutton in webtoolbar as the download
> progresses
> >         in background. Could anyone please guide me how to go about it?
> >
> >         On 2/11/16, Utkarsh Tiwari <[4][5]iamutkarshtiw...@gmail.com>
> wrote:
> >         > @James As mentioned, I tried making a blend of 'progressIcon' 
> &
> >         > 'ToolButton' by making some changes to the SugarToolButton
> code. Here
> >         is
> >         > how the download ProgressIcon @50% completion looks like ->
> >         > [5][6]http://imgur.com/iBg4Ktr
> >         >
> >         > Waiting for your reviews :)
> >         >
> >         > On Thu, Feb 11, 2016 at 3:28 PM, Sam P.  wrote:
> >         >
> >         >> Hello,
> >         >>
> >         >> I believe that it passes all the key word and normal 
> arguments
> to
> >         the
> >         >> superclass constructors.
> >         >>
> >         >> Out of interest, why are you using a Gtk drawing area as an
> >         additional
> >         >> base class?  Every widget (even the tool button) has the draw
> >         signal.  Is
> >         >> this what you are using it for or is there something else?
> >         >>
> >         >> Thanks,
> >         >> Sam
> >         >>
> >         >> On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari <[6]
> >         [7]iamutkarshtiw...@gmail.com>
> >         >> wrote:
> >         >>
> >         >>> What does the line "GObject.GObject.__init__(self, 
> **kwargs)"
> >         exactly
> >         >>> does in the following gist?
> >         >>>
> >         >>> [7][8]https://gist.github.com/iamutkarshtiwari/
> 5024762d0e8924b52085
> >         >>>
> >         >>> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron <[8][9]
> qu...@laptop.org>
> >         wrote:
> >         >>>
> >          Thanks.  Yes, the position is as I described.
> >         
> >          Your question puzzles me.  I didn't think there was any
> ambiguity
> >         or
> >          doubt.  It is unfortunate that I'm the only one who has
> posted
> >         about
> >          the positioning of this design change.
> >         
> >          Is it because you have an alternate suggestion?
> >         
> >          Good to hear combining the widgets worked.  Looking forward
> to
> >         seeing
> >          a patch or pull request.
> >         
> >          On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari
> wrote:
> >          > @James Is this the icon position you were talking about 
> as
> shown
> >         in
> >          > the
> >          > attachment below? Your hint for using ProgressIcon
> alongwith
> >          Toolbutton worked!
> >          > ;)
> >          >
> >          > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1][9]
> >         [10]qu...@laptop.org>
> >          wrote:
> >          >
> >     

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-22 Thread Utkarsh Tiwari
@James, I'll surely implement those fixes you listed above before sending
in a PR. :)

@everybody I added a new (progresstoolbutton.py) file to
"sugar-toolkit-gtk3/src/graphics/" and did some changes to
"browse/"(webtoolbar.py and downloadmanager.py) files. Shall I send a PR to
each repository (browse and sugar-toolkit-gtk3) individually or shall I
send a single PR to "sugar-build" repo ?

thanks,
Utkarsh Tiwari

On Mon, Feb 22, 2016 at 2:27 PM, James Cameron  wrote:

> The tooltip shows 0.0 with an empty outline just after it shows 1.0
> and full icon.
>
> Could this be changed slightly; continue to show 1.0 and full until
> the Download Completed question is answered?
>
> On Mon, Feb 22, 2016 at 08:44:25AM +, Sam P. wrote:
> > This looks great!  Please send a patch and we can review it!
> >
> > On Sun, Feb 21, 2016, 05:29 Utkarsh Tiwari <[1]
> iamutkarshtiw...@gmail.com>
> > wrote:
> >
> > Hello everyone,
> >   I finally managed to pull through 50% of
> the
> > downloadManagerIcon integration task. Here is the gif of all what I
> did
> > till now -> [2]http://imgur.com/zS0W9dG
> > There is still a long way to go. Reviews on this would be helpful :)
> >
> > regards,
> > Utkarsh Tiwari
> >
> >
> >
> > On Sat, Feb 13, 2016 at 8:36 PM, Utkarsh Tiwari <[3]
> > iamutkarshtiw...@gmail.com> wrote:
> >
> > I need to update a toolbutton in webtoolbar as the download
> progresses
> > in background. Could anyone please guide me how to go about it?
> >
> > On 2/11/16, Utkarsh Tiwari <[4]iamutkarshtiw...@gmail.com>
> wrote:
> > > @James As mentioned, I tried making a blend of 'progressIcon' &
> > > 'ToolButton' by making some changes to the SugarToolButton
> code. Here
> > is
> > > how the download ProgressIcon @50% completion looks like ->
> > > [5]http://imgur.com/iBg4Ktr
> > >
> > > Waiting for your reviews :)
> > >
> > > On Thu, Feb 11, 2016 at 3:28 PM, Sam P.  wrote:
> > >
> > >> Hello,
> > >>
> > >> I believe that it passes all the key word and normal
> arguments to
> > the
> > >> superclass constructors.
> > >>
> > >> Out of interest, why are you using a Gtk drawing area as an
> > additional
> > >> base class?  Every widget (even the tool button) has the draw
> > signal.  Is
> > >> this what you are using it for or is there something else?
> > >>
> > >> Thanks,
> > >> Sam
> > >>
> > >> On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari <[6]
> > iamutkarshtiw...@gmail.com>
> > >> wrote:
> > >>
> > >>> What does the line "GObject.GObject.__init__(self, **kwargs)"
> > exactly
> > >>> does in the following gist?
> > >>>
> > >>> [7]
> https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085
> > >>>
> > >>> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron <[8]
> qu...@laptop.org>
> > wrote:
> > >>>
> >  Thanks.  Yes, the position is as I described.
> > 
> >  Your question puzzles me.  I didn't think there was any
> ambiguity
> > or
> >  doubt.  It is unfortunate that I'm the only one who has
> posted
> > about
> >  the positioning of this design change.
> > 
> >  Is it because you have an alternate suggestion?
> > 
> >  Good to hear combining the widgets worked.  Looking forward
> to
> > seeing
> >  a patch or pull request.
> > 
> >  On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari
> wrote:
> >  > @James Is this the icon position you were talking about
> as shown
> > in
> >  > the
> >  > attachment below? Your hint for using ProgressIcon
> alongwith
> >  Toolbutton worked!
> >  > ;)
> >  >
> >  > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1][9]
> > qu...@laptop.org>
> >  wrote:
> >  >
> >  > A ToolButton normally has an Icon.
> >  >
> >  > Instead of the Icon, assign the ProgressIcon?
> >  >
> >  > As nobody else may have done this, you may need to
> find and
> > fix
> >  > any
> >  > bugs in ProgressIcon or ToolButton that prevent it.
> >  >
> >  > On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh
> Tiwari
> > wrote:
> >  > > Is there any way to use a ProgressIcon as a
> Toolbutton ?
> >  > >
> >  > > On 2/1/16, Sam P.  wrote:
> >  > > > Hello!
> >  > > >
> > 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-22 Thread James Cameron
The tooltip shows 0.0 with an empty outline just after it shows 1.0
and full icon.

Could this be changed slightly; continue to show 1.0 and full until
the Download Completed question is answered?

On Mon, Feb 22, 2016 at 08:44:25AM +, Sam P. wrote:
> This looks great!  Please send a patch and we can review it!
> 
> On Sun, Feb 21, 2016, 05:29 Utkarsh Tiwari <[1]iamutkarshtiw...@gmail.com>
> wrote:
> 
> Hello everyone,
>                           I finally managed to pull through 50% of the
> downloadManagerIcon integration task. Here is the gif of all what I did
> till now -> [2]http://imgur.com/zS0W9dG  
> There is still a long way to go. Reviews on this would be helpful :)
> 
> regards,
> Utkarsh Tiwari
> 
>  
> 
> On Sat, Feb 13, 2016 at 8:36 PM, Utkarsh Tiwari <[3]
> iamutkarshtiw...@gmail.com> wrote:
> 
> I need to update a toolbutton in webtoolbar as the download progresses
> in background. Could anyone please guide me how to go about it?
> 
> On 2/11/16, Utkarsh Tiwari <[4]iamutkarshtiw...@gmail.com> wrote:
> > @James As mentioned, I tried making a blend of 'progressIcon' &
> > 'ToolButton' by making some changes to the SugarToolButton code. 
> Here
> is
> > how the download ProgressIcon @50% completion looks like ->
> > [5]http://imgur.com/iBg4Ktr
> >
> > Waiting for your reviews :)
> >
> > On Thu, Feb 11, 2016 at 3:28 PM, Sam P.  wrote:
> >
> >> Hello,
> >>
> >> I believe that it passes all the key word and normal arguments to
> the
> >> superclass constructors.
> >>
> >> Out of interest, why are you using a Gtk drawing area as an
> additional
> >> base class?  Every widget (even the tool button) has the draw
> signal.  Is
> >> this what you are using it for or is there something else?
> >>
> >> Thanks,
> >> Sam
> >>
> >> On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari <[6]
> iamutkarshtiw...@gmail.com>
> >> wrote:
> >>
> >>> What does the line "GObject.GObject.__init__(self, **kwargs)"
> exactly
> >>> does in the following gist?
> >>>
> >>> [7]https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085
> >>>
> >>> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron 
> <[8]qu...@laptop.org>
> wrote:
> >>>
>  Thanks.  Yes, the position is as I described.
> 
>  Your question puzzles me.  I didn't think there was any ambiguity
> or
>  doubt.  It is unfortunate that I'm the only one who has posted
> about
>  the positioning of this design change.
> 
>  Is it because you have an alternate suggestion?
> 
>  Good to hear combining the widgets worked.  Looking forward to
> seeing
>  a patch or pull request.
> 
>  On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari wrote:
>  > @James Is this the icon position you were talking about as 
> shown
> in
>  > the
>  > attachment below? Your hint for using ProgressIcon alongwith
>  Toolbutton worked!
>  > ;)
>  >
>  > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1][9]
> qu...@laptop.org>
>  wrote:
>  >
>  >     A ToolButton normally has an Icon.
>  >
>  >     Instead of the Icon, assign the ProgressIcon?
>  >
>  >     As nobody else may have done this, you may need to find and
> fix
>  > any
>  >     bugs in ProgressIcon or ToolButton that prevent it.
>  >
>  >     On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari
> wrote:
>  >     > Is there any way to use a ProgressIcon as a Toolbutton ?
>  >     >
>  >     > On 2/1/16, Sam P.  wrote:
>  >     > > Hello!
>  >     > >
>  >     > > Maybe just a large down arrow and fill it vertically? 
> See
>  >     > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
>  >     > >
>  >     > > Thanks,
>  >     > > Sam
>  >     > >
>  >     > >
>  >     > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <[2]
>  >     [10]iamutkarshtiw...@gmail.com>
>  >     > > wrote:
>  >     > >
>  >     > >> How should the Icon for "Download Button" look like?
> Could
>  you please
>  >     > >> provide me some artwork for reference. ?
>  >     > >>
>  >     > >> 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-22 Thread Sam P.
This looks great!  Please send a patch and we can review it!

On Sun, Feb 21, 2016, 05:29 Utkarsh Tiwari 
wrote:

> Hello everyone,
>   I finally managed to pull through 50% of the
> downloadManagerIcon integration task. Here is the gif of all what I did
> till now -> http://imgur.com/zS0W9dG
> There is still a long way to go. Reviews on this would be helpful :)
>
> regards,
> Utkarsh Tiwari
>
>
>
> On Sat, Feb 13, 2016 at 8:36 PM, Utkarsh Tiwari <
> iamutkarshtiw...@gmail.com> wrote:
>
>> I need to update a toolbutton in webtoolbar as the download progresses
>> in background. Could anyone please guide me how to go about it?
>>
>> On 2/11/16, Utkarsh Tiwari  wrote:
>> > @James As mentioned, I tried making a blend of 'progressIcon' &
>> > 'ToolButton' by making some changes to the SugarToolButton code. Here is
>> > how the download ProgressIcon @50% completion looks like ->
>> > http://imgur.com/iBg4Ktr
>> >
>> > Waiting for your reviews :)
>> >
>> > On Thu, Feb 11, 2016 at 3:28 PM, Sam P.  wrote:
>> >
>> >> Hello,
>> >>
>> >> I believe that it passes all the key word and normal arguments to the
>> >> superclass constructors.
>> >>
>> >> Out of interest, why are you using a Gtk drawing area as an additional
>> >> base class?  Every widget (even the tool button) has the draw signal.
>> Is
>> >> this what you are using it for or is there something else?
>> >>
>> >> Thanks,
>> >> Sam
>> >>
>> >> On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari > >
>> >> wrote:
>> >>
>> >>> What does the line "GObject.GObject.__init__(self, **kwargs)" exactly
>> >>> does in the following gist?
>> >>>
>> >>> https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085
>> >>>
>> >>> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron 
>> wrote:
>> >>>
>>  Thanks.  Yes, the position is as I described.
>> 
>>  Your question puzzles me.  I didn't think there was any ambiguity or
>>  doubt.  It is unfortunate that I'm the only one who has posted about
>>  the positioning of this design change.
>> 
>>  Is it because you have an alternate suggestion?
>> 
>>  Good to hear combining the widgets worked.  Looking forward to seeing
>>  a patch or pull request.
>> 
>>  On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari wrote:
>>  > @James Is this the icon position you were talking about as shown in
>>  > the
>>  > attachment below? Your hint for using ProgressIcon alongwith
>>  Toolbutton worked!
>>  > ;)
>>  >
>>  > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1]qu...@laptop.org
>> >
>>  wrote:
>>  >
>>  > A ToolButton normally has an Icon.
>>  >
>>  > Instead of the Icon, assign the ProgressIcon?
>>  >
>>  > As nobody else may have done this, you may need to find and fix
>>  > any
>>  > bugs in ProgressIcon or ToolButton that prevent it.
>>  >
>>  > On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:
>>  > > Is there any way to use a ProgressIcon as a Toolbutton ?
>>  > >
>>  > > On 2/1/16, Sam P.  wrote:
>>  > > > Hello!
>>  > > >
>>  > > > Maybe just a large down arrow and fill it vertically?  See
>>  > > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
>>  > > >
>>  > > > Thanks,
>>  > > > Sam
>>  > > >
>>  > > >
>>  > > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <[2]
>>  > iamutkarshtiw...@gmail.com>
>>  > > > wrote:
>>  > > >
>>  > > >> How should the Icon for "Download Button" look like? Could
>>  you please
>>  > > >> provide me some artwork for reference. ?
>>  > > >>
>>  > > >> On 2/1/16, Utkarsh Tiwari <[3]iamutkarshtiw...@gmail.com>
>>  wrote:
>>  > > >> > Omg! I have been looking all over internet on how to
>>  integrate a
>>  > > >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried
>> using
>>  > > >> > Gtk.CssProvider styler to scale down the progressbar to
>> a
>>  button :D
>>  > > >> > Now that(ProgressIcon.py) sounds really cool!
>>  > > >> >
>>  > > >> > Thank you :) You made my work a bit easier ;)
>>  > > >> >
>>  > > >> > On 2/1/16, James Cameron <[4]qu...@laptop.org> wrote:
>>  > > >> >> ProgressBar from Gtk is overkill, we already have a
>>  ProgressIcon
>>  > > >> >> in Sugar.
>>  > > >> >>
>>  > > >> >> In sugar-toolkit-gtk3:
>>  > > >> >>
>>  > > >> >> Look at progressicon.py, you will see it does not use a
>>  > ProgressBar,
>>  > > >> >> but has a __draw_cb method connected to the "draw"
>>  > signal.
>>  > > >> >>
>>  > > >> >> Look at toolbutton.py, you will see it 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-20 Thread Utkarsh Tiwari
Hello everyone,
  I finally managed to pull through 50% of the
downloadManagerIcon integration task. Here is the gif of all what I did
till now -> http://imgur.com/zS0W9dG
There is still a long way to go. Reviews on this would be helpful :)

regards,
Utkarsh Tiwari



On Sat, Feb 13, 2016 at 8:36 PM, Utkarsh Tiwari 
wrote:

> I need to update a toolbutton in webtoolbar as the download progresses
> in background. Could anyone please guide me how to go about it?
>
> On 2/11/16, Utkarsh Tiwari  wrote:
> > @James As mentioned, I tried making a blend of 'progressIcon' &
> > 'ToolButton' by making some changes to the SugarToolButton code. Here is
> > how the download ProgressIcon @50% completion looks like ->
> > http://imgur.com/iBg4Ktr
> >
> > Waiting for your reviews :)
> >
> > On Thu, Feb 11, 2016 at 3:28 PM, Sam P.  wrote:
> >
> >> Hello,
> >>
> >> I believe that it passes all the key word and normal arguments to the
> >> superclass constructors.
> >>
> >> Out of interest, why are you using a Gtk drawing area as an additional
> >> base class?  Every widget (even the tool button) has the draw signal.
> Is
> >> this what you are using it for or is there something else?
> >>
> >> Thanks,
> >> Sam
> >>
> >> On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari 
> >> wrote:
> >>
> >>> What does the line "GObject.GObject.__init__(self, **kwargs)" exactly
> >>> does in the following gist?
> >>>
> >>> https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085
> >>>
> >>> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron 
> wrote:
> >>>
>  Thanks.  Yes, the position is as I described.
> 
>  Your question puzzles me.  I didn't think there was any ambiguity or
>  doubt.  It is unfortunate that I'm the only one who has posted about
>  the positioning of this design change.
> 
>  Is it because you have an alternate suggestion?
> 
>  Good to hear combining the widgets worked.  Looking forward to seeing
>  a patch or pull request.
> 
>  On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari wrote:
>  > @James Is this the icon position you were talking about as shown in
>  > the
>  > attachment below? Your hint for using ProgressIcon alongwith
>  Toolbutton worked!
>  > ;)
>  >
>  > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1]qu...@laptop.org>
>  wrote:
>  >
>  > A ToolButton normally has an Icon.
>  >
>  > Instead of the Icon, assign the ProgressIcon?
>  >
>  > As nobody else may have done this, you may need to find and fix
>  > any
>  > bugs in ProgressIcon or ToolButton that prevent it.
>  >
>  > On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:
>  > > Is there any way to use a ProgressIcon as a Toolbutton ?
>  > >
>  > > On 2/1/16, Sam P.  wrote:
>  > > > Hello!
>  > > >
>  > > > Maybe just a large down arrow and fill it vertically?  See
>  > > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
>  > > >
>  > > > Thanks,
>  > > > Sam
>  > > >
>  > > >
>  > > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <[2]
>  > iamutkarshtiw...@gmail.com>
>  > > > wrote:
>  > > >
>  > > >> How should the Icon for "Download Button" look like? Could
>  you please
>  > > >> provide me some artwork for reference. ?
>  > > >>
>  > > >> On 2/1/16, Utkarsh Tiwari <[3]iamutkarshtiw...@gmail.com>
>  wrote:
>  > > >> > Omg! I have been looking all over internet on how to
>  integrate a
>  > > >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried
> using
>  > > >> > Gtk.CssProvider styler to scale down the progressbar to a
>  button :D
>  > > >> > Now that(ProgressIcon.py) sounds really cool!
>  > > >> >
>  > > >> > Thank you :) You made my work a bit easier ;)
>  > > >> >
>  > > >> > On 2/1/16, James Cameron <[4]qu...@laptop.org> wrote:
>  > > >> >> ProgressBar from Gtk is overkill, we already have a
>  ProgressIcon
>  > > >> >> in Sugar.
>  > > >> >>
>  > > >> >> In sugar-toolkit-gtk3:
>  > > >> >>
>  > > >> >> Look at progressicon.py, you will see it does not use a
>  > ProgressBar,
>  > > >> >> but has a __draw_cb method connected to the "draw"
>  > signal.
>  > > >> >>
>  > > >> >> Look at toolbutton.py, you will see it wraps ToolButton
>  do_draw
>  > > >> >> method.
>  > > >> >>
>  > > >> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari
>  wrote:
>  > > >> >>> "The button to be a blend of ProgressIcon and
>  ToolButton". How to
>  > > >> 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-13 Thread Utkarsh Tiwari
I need to update a toolbutton in webtoolbar as the download progresses
in background. Could anyone please guide me how to go about it?

On 2/11/16, Utkarsh Tiwari  wrote:
> @James As mentioned, I tried making a blend of 'progressIcon' &
> 'ToolButton' by making some changes to the SugarToolButton code. Here is
> how the download ProgressIcon @50% completion looks like ->
> http://imgur.com/iBg4Ktr
>
> Waiting for your reviews :)
>
> On Thu, Feb 11, 2016 at 3:28 PM, Sam P.  wrote:
>
>> Hello,
>>
>> I believe that it passes all the key word and normal arguments to the
>> superclass constructors.
>>
>> Out of interest, why are you using a Gtk drawing area as an additional
>> base class?  Every widget (even the tool button) has the draw signal.  Is
>> this what you are using it for or is there something else?
>>
>> Thanks,
>> Sam
>>
>> On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari 
>> wrote:
>>
>>> What does the line "GObject.GObject.__init__(self, **kwargs)" exactly
>>> does in the following gist?
>>>
>>> https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085
>>>
>>> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron  wrote:
>>>
 Thanks.  Yes, the position is as I described.

 Your question puzzles me.  I didn't think there was any ambiguity or
 doubt.  It is unfortunate that I'm the only one who has posted about
 the positioning of this design change.

 Is it because you have an alternate suggestion?

 Good to hear combining the widgets worked.  Looking forward to seeing
 a patch or pull request.

 On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari wrote:
 > @James Is this the icon position you were talking about as shown in
 > the
 > attachment below? Your hint for using ProgressIcon alongwith
 Toolbutton worked!
 > ;)
 >
 > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1]qu...@laptop.org>
 wrote:
 >
 > A ToolButton normally has an Icon.
 >
 > Instead of the Icon, assign the ProgressIcon?
 >
 > As nobody else may have done this, you may need to find and fix
 > any
 > bugs in ProgressIcon or ToolButton that prevent it.
 >
 > On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:
 > > Is there any way to use a ProgressIcon as a Toolbutton ?
 > >
 > > On 2/1/16, Sam P.  wrote:
 > > > Hello!
 > > >
 > > > Maybe just a large down arrow and fill it vertically?  See
 > > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
 > > >
 > > > Thanks,
 > > > Sam
 > > >
 > > >
 > > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <[2]
 > iamutkarshtiw...@gmail.com>
 > > > wrote:
 > > >
 > > >> How should the Icon for "Download Button" look like? Could
 you please
 > > >> provide me some artwork for reference. ?
 > > >>
 > > >> On 2/1/16, Utkarsh Tiwari <[3]iamutkarshtiw...@gmail.com>
 wrote:
 > > >> > Omg! I have been looking all over internet on how to
 integrate a
 > > >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
 > > >> > Gtk.CssProvider styler to scale down the progressbar to a
 button :D
 > > >> > Now that(ProgressIcon.py) sounds really cool!
 > > >> >
 > > >> > Thank you :) You made my work a bit easier ;)
 > > >> >
 > > >> > On 2/1/16, James Cameron <[4]qu...@laptop.org> wrote:
 > > >> >> ProgressBar from Gtk is overkill, we already have a
 ProgressIcon
 > > >> >> in Sugar.
 > > >> >>
 > > >> >> In sugar-toolkit-gtk3:
 > > >> >>
 > > >> >> Look at progressicon.py, you will see it does not use a
 > ProgressBar,
 > > >> >> but has a __draw_cb method connected to the "draw"
 > signal.
 > > >> >>
 > > >> >> Look at toolbutton.py, you will see it wraps ToolButton
 do_draw
 > > >> >> method.
 > > >> >>
 > > >> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari
 wrote:
 > > >> >>> "The button to be a blend of ProgressIcon and
 ToolButton". How to
 > > >> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
 > > >> >>>
 > > >> >>> On 1/27/16, James Cameron <[5]qu...@laptop.org> wrote:
 > > >> >>> > No.
 > > >> >>> >
 > > >> >>> > The position marked by your cursor seems to be inside
 the URL
 > entry
 > > >> >>> > box.
 > > >> >>> >
 > > >> >>> > I said between the URL entry box and the back button.
 > > >> >>> >
 > > >> >>> > Review the Browse source code that defines these
 objects.
 > > >> >>> >
 > > >> >>> > On Wed, Jan 27, 2016 at 11:39:03AM 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-11 Thread Utkarsh Tiwari
@James As mentioned, I tried making a blend of 'progressIcon' &
'ToolButton' by making some changes to the SugarToolButton code. Here is
how the download ProgressIcon @50% completion looks like ->
http://imgur.com/iBg4Ktr

Waiting for your reviews :)

On Thu, Feb 11, 2016 at 3:28 PM, Sam P.  wrote:

> Hello,
>
> I believe that it passes all the key word and normal arguments to the
> superclass constructors.
>
> Out of interest, why are you using a Gtk drawing area as an additional
> base class?  Every widget (even the tool button) has the draw signal.  Is
> this what you are using it for or is there something else?
>
> Thanks,
> Sam
>
> On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari 
> wrote:
>
>> What does the line "GObject.GObject.__init__(self, **kwargs)" exactly
>> does in the following gist?
>>
>> https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085
>>
>> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron  wrote:
>>
>>> Thanks.  Yes, the position is as I described.
>>>
>>> Your question puzzles me.  I didn't think there was any ambiguity or
>>> doubt.  It is unfortunate that I'm the only one who has posted about
>>> the positioning of this design change.
>>>
>>> Is it because you have an alternate suggestion?
>>>
>>> Good to hear combining the widgets worked.  Looking forward to seeing
>>> a patch or pull request.
>>>
>>> On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari wrote:
>>> > @James Is this the icon position you were talking about as shown in the
>>> > attachment below? Your hint for using ProgressIcon alongwith
>>> Toolbutton worked!
>>> > ;)
>>> >
>>> > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1]qu...@laptop.org>
>>> wrote:
>>> >
>>> > A ToolButton normally has an Icon.
>>> >
>>> > Instead of the Icon, assign the ProgressIcon?
>>> >
>>> > As nobody else may have done this, you may need to find and fix any
>>> > bugs in ProgressIcon or ToolButton that prevent it.
>>> >
>>> > On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:
>>> > > Is there any way to use a ProgressIcon as a Toolbutton ?
>>> > >
>>> > > On 2/1/16, Sam P.  wrote:
>>> > > > Hello!
>>> > > >
>>> > > > Maybe just a large down arrow and fill it vertically?  See
>>> > > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
>>> > > >
>>> > > > Thanks,
>>> > > > Sam
>>> > > >
>>> > > >
>>> > > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <[2]
>>> > iamutkarshtiw...@gmail.com>
>>> > > > wrote:
>>> > > >
>>> > > >> How should the Icon for "Download Button" look like? Could
>>> you please
>>> > > >> provide me some artwork for reference. ?
>>> > > >>
>>> > > >> On 2/1/16, Utkarsh Tiwari <[3]iamutkarshtiw...@gmail.com>
>>> wrote:
>>> > > >> > Omg! I have been looking all over internet on how to
>>> integrate a
>>> > > >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
>>> > > >> > Gtk.CssProvider styler to scale down the progressbar to a
>>> button :D
>>> > > >> > Now that(ProgressIcon.py) sounds really cool!
>>> > > >> >
>>> > > >> > Thank you :) You made my work a bit easier ;)
>>> > > >> >
>>> > > >> > On 2/1/16, James Cameron <[4]qu...@laptop.org> wrote:
>>> > > >> >> ProgressBar from Gtk is overkill, we already have a
>>> ProgressIcon
>>> > > >> >> in Sugar.
>>> > > >> >>
>>> > > >> >> In sugar-toolkit-gtk3:
>>> > > >> >>
>>> > > >> >> Look at progressicon.py, you will see it does not use a
>>> > ProgressBar,
>>> > > >> >> but has a __draw_cb method connected to the "draw" signal.
>>> > > >> >>
>>> > > >> >> Look at toolbutton.py, you will see it wraps ToolButton
>>> do_draw
>>> > > >> >> method.
>>> > > >> >>
>>> > > >> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari
>>> wrote:
>>> > > >> >>> "The button to be a blend of ProgressIcon and
>>> ToolButton". How to
>>> > > >> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
>>> > > >> >>>
>>> > > >> >>> On 1/27/16, James Cameron <[5]qu...@laptop.org> wrote:
>>> > > >> >>> > No.
>>> > > >> >>> >
>>> > > >> >>> > The position marked by your cursor seems to be inside
>>> the URL
>>> > entry
>>> > > >> >>> > box.
>>> > > >> >>> >
>>> > > >> >>> > I said between the URL entry box and the back button.
>>> > > >> >>> >
>>> > > >> >>> > Review the Browse source code that defines these
>>> objects.
>>> > > >> >>> >
>>> > > >> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh
>>> Tiwari wrote:
>>> > > >> >>> >> Is this the exact expected location you were talking
>>> about the
>>> > > >> >>> >> 'download button' as shown in the screenshot below?
>>> > > >> >>> >>
>>> > > >> >>> >> [6]http://imgur.com/T0hirTZ
>>> > > >> >>> >>
>>> > > >> >>> >> On 1/27/16, James Cameron 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-11 Thread Sam P.
Hello,

I believe that it passes all the key word and normal arguments to the
superclass constructors.

Out of interest, why are you using a Gtk drawing area as an additional base
class?  Every widget (even the tool button) has the draw signal.  Is this
what you are using it for or is there something else?

Thanks,
Sam

On Thu, Feb 11, 2016, 09:03 Utkarsh Tiwari 
wrote:

> What does the line "GObject.GObject.__init__(self, **kwargs)" exactly does
> in the following gist?
>
> https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085
>
> On Thu, Feb 4, 2016 at 5:00 AM, James Cameron  wrote:
>
>> Thanks.  Yes, the position is as I described.
>>
>> Your question puzzles me.  I didn't think there was any ambiguity or
>> doubt.  It is unfortunate that I'm the only one who has posted about
>> the positioning of this design change.
>>
>> Is it because you have an alternate suggestion?
>>
>> Good to hear combining the widgets worked.  Looking forward to seeing
>> a patch or pull request.
>>
>> On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari wrote:
>> > @James Is this the icon position you were talking about as shown in the
>> > attachment below? Your hint for using ProgressIcon alongwith Toolbutton
>> worked!
>> > ;)
>> >
>> > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1]qu...@laptop.org>
>> wrote:
>> >
>> > A ToolButton normally has an Icon.
>> >
>> > Instead of the Icon, assign the ProgressIcon?
>> >
>> > As nobody else may have done this, you may need to find and fix any
>> > bugs in ProgressIcon or ToolButton that prevent it.
>> >
>> > On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:
>> > > Is there any way to use a ProgressIcon as a Toolbutton ?
>> > >
>> > > On 2/1/16, Sam P.  wrote:
>> > > > Hello!
>> > > >
>> > > > Maybe just a large down arrow and fill it vertically?  See
>> > > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
>> > > >
>> > > > Thanks,
>> > > > Sam
>> > > >
>> > > >
>> > > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <[2]
>> > iamutkarshtiw...@gmail.com>
>> > > > wrote:
>> > > >
>> > > >> How should the Icon for "Download Button" look like? Could you
>> please
>> > > >> provide me some artwork for reference. ?
>> > > >>
>> > > >> On 2/1/16, Utkarsh Tiwari <[3]iamutkarshtiw...@gmail.com>
>> wrote:
>> > > >> > Omg! I have been looking all over internet on how to
>> integrate a
>> > > >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
>> > > >> > Gtk.CssProvider styler to scale down the progressbar to a
>> button :D
>> > > >> > Now that(ProgressIcon.py) sounds really cool!
>> > > >> >
>> > > >> > Thank you :) You made my work a bit easier ;)
>> > > >> >
>> > > >> > On 2/1/16, James Cameron <[4]qu...@laptop.org> wrote:
>> > > >> >> ProgressBar from Gtk is overkill, we already have a
>> ProgressIcon
>> > > >> >> in Sugar.
>> > > >> >>
>> > > >> >> In sugar-toolkit-gtk3:
>> > > >> >>
>> > > >> >> Look at progressicon.py, you will see it does not use a
>> > ProgressBar,
>> > > >> >> but has a __draw_cb method connected to the "draw" signal.
>> > > >> >>
>> > > >> >> Look at toolbutton.py, you will see it wraps ToolButton
>> do_draw
>> > > >> >> method.
>> > > >> >>
>> > > >> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari
>> wrote:
>> > > >> >>> "The button to be a blend of ProgressIcon and ToolButton".
>> How to
>> > > >> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
>> > > >> >>>
>> > > >> >>> On 1/27/16, James Cameron <[5]qu...@laptop.org> wrote:
>> > > >> >>> > No.
>> > > >> >>> >
>> > > >> >>> > The position marked by your cursor seems to be inside
>> the URL
>> > entry
>> > > >> >>> > box.
>> > > >> >>> >
>> > > >> >>> > I said between the URL entry box and the back button.
>> > > >> >>> >
>> > > >> >>> > Review the Browse source code that defines these objects.
>> > > >> >>> >
>> > > >> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari
>> wrote:
>> > > >> >>> >> Is this the exact expected location you were talking
>> about the
>> > > >> >>> >> 'download button' as shown in the screenshot below?
>> > > >> >>> >>
>> > > >> >>> >> [6]http://imgur.com/T0hirTZ
>> > > >> >>> >>
>> > > >> >>> >> On 1/27/16, James Cameron <[7]qu...@laptop.org> wrote:
>> > > >> >>> >> > Thanks for working on this.
>> > > >> >>> >> >
>> > > >> >>> >> > Our Sugar human interface guidelines and existing
>> code base
>> > > >> >>> >> > don't
>> > > >> >>> >> > have
>> > > >> >>> >> > decorated floating windows or window management.  Your
>> > proposal
>> > > >> >>> >> > would
>> > > >> >>> >> > not scale to multiple downloads.
>> > > >> >>> >> >
>> > > >> >>> >> 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-10 Thread Utkarsh Tiwari
What does the line "GObject.GObject.__init__(self, **kwargs)" exactly does
in the following gist?

https://gist.github.com/iamutkarshtiwari/5024762d0e8924b52085

On Thu, Feb 4, 2016 at 5:00 AM, James Cameron  wrote:

> Thanks.  Yes, the position is as I described.
>
> Your question puzzles me.  I didn't think there was any ambiguity or
> doubt.  It is unfortunate that I'm the only one who has posted about
> the positioning of this design change.
>
> Is it because you have an alternate suggestion?
>
> Good to hear combining the widgets worked.  Looking forward to seeing
> a patch or pull request.
>
> On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari wrote:
> > @James Is this the icon position you were talking about as shown in the
> > attachment below? Your hint for using ProgressIcon alongwith Toolbutton
> worked!
> > ;)
> >
> > On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1]qu...@laptop.org>
> wrote:
> >
> > A ToolButton normally has an Icon.
> >
> > Instead of the Icon, assign the ProgressIcon?
> >
> > As nobody else may have done this, you may need to find and fix any
> > bugs in ProgressIcon or ToolButton that prevent it.
> >
> > On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:
> > > Is there any way to use a ProgressIcon as a Toolbutton ?
> > >
> > > On 2/1/16, Sam P.  wrote:
> > > > Hello!
> > > >
> > > > Maybe just a large down arrow and fill it vertically?  See
> > > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
> > > >
> > > > Thanks,
> > > > Sam
> > > >
> > > >
> > > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <[2]
> > iamutkarshtiw...@gmail.com>
> > > > wrote:
> > > >
> > > >> How should the Icon for "Download Button" look like? Could you
> please
> > > >> provide me some artwork for reference. ?
> > > >>
> > > >> On 2/1/16, Utkarsh Tiwari <[3]iamutkarshtiw...@gmail.com>
> wrote:
> > > >> > Omg! I have been looking all over internet on how to
> integrate a
> > > >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
> > > >> > Gtk.CssProvider styler to scale down the progressbar to a
> button :D
> > > >> > Now that(ProgressIcon.py) sounds really cool!
> > > >> >
> > > >> > Thank you :) You made my work a bit easier ;)
> > > >> >
> > > >> > On 2/1/16, James Cameron <[4]qu...@laptop.org> wrote:
> > > >> >> ProgressBar from Gtk is overkill, we already have a
> ProgressIcon
> > > >> >> in Sugar.
> > > >> >>
> > > >> >> In sugar-toolkit-gtk3:
> > > >> >>
> > > >> >> Look at progressicon.py, you will see it does not use a
> > ProgressBar,
> > > >> >> but has a __draw_cb method connected to the "draw" signal.
> > > >> >>
> > > >> >> Look at toolbutton.py, you will see it wraps ToolButton
> do_draw
> > > >> >> method.
> > > >> >>
> > > >> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari
> wrote:
> > > >> >>> "The button to be a blend of ProgressIcon and ToolButton".
> How to
> > > >> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
> > > >> >>>
> > > >> >>> On 1/27/16, James Cameron <[5]qu...@laptop.org> wrote:
> > > >> >>> > No.
> > > >> >>> >
> > > >> >>> > The position marked by your cursor seems to be inside the
> URL
> > entry
> > > >> >>> > box.
> > > >> >>> >
> > > >> >>> > I said between the URL entry box and the back button.
> > > >> >>> >
> > > >> >>> > Review the Browse source code that defines these objects.
> > > >> >>> >
> > > >> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari
> wrote:
> > > >> >>> >> Is this the exact expected location you were talking
> about the
> > > >> >>> >> 'download button' as shown in the screenshot below?
> > > >> >>> >>
> > > >> >>> >> [6]http://imgur.com/T0hirTZ
> > > >> >>> >>
> > > >> >>> >> On 1/27/16, James Cameron <[7]qu...@laptop.org> wrote:
> > > >> >>> >> > Thanks for working on this.
> > > >> >>> >> >
> > > >> >>> >> > Our Sugar human interface guidelines and existing code
> base
> > > >> >>> >> > don't
> > > >> >>> >> > have
> > > >> >>> >> > decorated floating windows or window management.  Your
> > proposal
> > > >> >>> >> > would
> > > >> >>> >> > not scale to multiple downloads.
> > > >> >>> >> >
> > > >> >>> >> > You might ask for design suggestions on this mailing
> list.
> > > >> >>> >> >
> > > >> >>> >> > I've resisted making design suggestions on this problem
> > because
> > > >> >>> >> > I
> > > >> >>> >> > don't want to constrain the good ideas that may come
> up.
> > > >> >>> >> >
> > > >> >>> >> > To get the design conversation started ...
> > > >> >>> >> >
> > > >> >>> >> > When the first download begins, show a button at the
> top
> > between
> > > >> >>> >> > the
> > > 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-03 Thread Utkarsh Tiwari
@James Is this the icon position you were talking about as shown in the
attachment below? Your hint for using ProgressIcon alongwith Toolbutton
worked! ;)

On Tue, Feb 2, 2016 at 2:17 AM, James Cameron  wrote:

> A ToolButton normally has an Icon.
>
> Instead of the Icon, assign the ProgressIcon?
>
> As nobody else may have done this, you may need to find and fix any
> bugs in ProgressIcon or ToolButton that prevent it.
>
> On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:
> > Is there any way to use a ProgressIcon as a Toolbutton ?
> >
> > On 2/1/16, Sam P.  wrote:
> > > Hello!
> > >
> > > Maybe just a large down arrow and fill it vertically?  See
> > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
> > >
> > > Thanks,
> > > Sam
> > >
> > >
> > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <
> iamutkarshtiw...@gmail.com>
> > > wrote:
> > >
> > >> How should the Icon for "Download Button" look like? Could you please
> > >> provide me some artwork for reference. ?
> > >>
> > >> On 2/1/16, Utkarsh Tiwari  wrote:
> > >> > Omg! I have been looking all over internet on how to integrate a
> > >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
> > >> > Gtk.CssProvider styler to scale down the progressbar to a button :D
> > >> > Now that(ProgressIcon.py) sounds really cool!
> > >> >
> > >> > Thank you :) You made my work a bit easier ;)
> > >> >
> > >> > On 2/1/16, James Cameron  wrote:
> > >> >> ProgressBar from Gtk is overkill, we already have a ProgressIcon
> > >> >> in Sugar.
> > >> >>
> > >> >> In sugar-toolkit-gtk3:
> > >> >>
> > >> >> Look at progressicon.py, you will see it does not use a
> ProgressBar,
> > >> >> but has a __draw_cb method connected to the "draw" signal.
> > >> >>
> > >> >> Look at toolbutton.py, you will see it wraps ToolButton do_draw
> > >> >> method.
> > >> >>
> > >> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari wrote:
> > >> >>> "The button to be a blend of ProgressIcon and ToolButton". How to
> > >> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
> > >> >>>
> > >> >>> On 1/27/16, James Cameron  wrote:
> > >> >>> > No.
> > >> >>> >
> > >> >>> > The position marked by your cursor seems to be inside the URL
> entry
> > >> >>> > box.
> > >> >>> >
> > >> >>> > I said between the URL entry box and the back button.
> > >> >>> >
> > >> >>> > Review the Browse source code that defines these objects.
> > >> >>> >
> > >> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
> > >> >>> >> Is this the exact expected location you were talking about the
> > >> >>> >> 'download button' as shown in the screenshot below?
> > >> >>> >>
> > >> >>> >> http://imgur.com/T0hirTZ
> > >> >>> >>
> > >> >>> >> On 1/27/16, James Cameron  wrote:
> > >> >>> >> > Thanks for working on this.
> > >> >>> >> >
> > >> >>> >> > Our Sugar human interface guidelines and existing code base
> > >> >>> >> > don't
> > >> >>> >> > have
> > >> >>> >> > decorated floating windows or window management.  Your
> proposal
> > >> >>> >> > would
> > >> >>> >> > not scale to multiple downloads.
> > >> >>> >> >
> > >> >>> >> > You might ask for design suggestions on this mailing list.
> > >> >>> >> >
> > >> >>> >> > I've resisted making design suggestions on this problem
> because
> > >> >>> >> > I
> > >> >>> >> > don't want to constrain the good ideas that may come up.
> > >> >>> >> >
> > >> >>> >> > To get the design conversation started ...
> > >> >>> >> >
> > >> >>> >> > When the first download begins, show a button at the top
> between
> > >> >>> >> > the
> > >> >>> >> > URL entry box and the back button.
> > >> >>> >> >
> > >> >>> >> > The button to be a blend of ProgressIcon and ToolButton, with
> > >> >>> >> > the
> > >> >>> >> > progress fill to show average progress of all downloads.
> > >> >>> >> >
> > >> >>> >> > When the button is pressed a download tab is to be shown in
> the
> > >> >>> >> > canvas, which lists downloads and progress.
> > >> >>> >> >
> > >> >>> >> > The download tab can be closed like any other tab.
> > >> >>> >> >
> > >> >>> >> > The button is to be be hidden before any downloads are
> started,
> > >> >>> >> > shown
> > >> >>> >> > on start of first download, and only hidden if the download
> tab
> > >> >>> >> > is
> > >> >>> >> > closed when there are no downloads still active.
> > >> >>> >> >
> > >> >>> >> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari
> wrote:
> > >> >>> >> >> Hi,
> > >> >>> >> >>
> > >> >>> >> >>  I am trying to integrate the "Download ProgressBar" in
> the
> > >> >>> >> >> download
> > >> >>> >> >> manager. Here is the screenshot of the prototype on which I
> am
> > >> >>> >> >> currently
> > >> >>> >> >> working -> [1]http://imgur.com/WUJL8eX
> > >> >>> >> >>
> > >> >>> >> >> Since the download progress bar is popping over the browse
> > >> >>> >> >> activity,
> > >> >>> >> >> is

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-03 Thread James Cameron
Thanks.  Yes, the position is as I described.

Your question puzzles me.  I didn't think there was any ambiguity or
doubt.  It is unfortunate that I'm the only one who has posted about
the positioning of this design change.

Is it because you have an alternate suggestion?

Good to hear combining the widgets worked.  Looking forward to seeing
a patch or pull request.

On Thu, Feb 04, 2016 at 03:49:54AM +0530, Utkarsh Tiwari wrote:
> @James Is this the icon position you were talking about as shown in the
> attachment below? Your hint for using ProgressIcon alongwith Toolbutton 
> worked!
> ;) 
> 
> On Tue, Feb 2, 2016 at 2:17 AM, James Cameron <[1]qu...@laptop.org> wrote:
> 
> A ToolButton normally has an Icon.
> 
> Instead of the Icon, assign the ProgressIcon?
> 
> As nobody else may have done this, you may need to find and fix any
> bugs in ProgressIcon or ToolButton that prevent it.
> 
> On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:
> > Is there any way to use a ProgressIcon as a Toolbutton ?
> >
> > On 2/1/16, Sam P.  wrote:
> > > Hello!
> > >
> > > Maybe just a large down arrow and fill it vertically?  See
> > > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
> > >
> > > Thanks,
> > > Sam
> > >
> > >
> > > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari <[2]
> iamutkarshtiw...@gmail.com>
> > > wrote:
> > >
> > >> How should the Icon for "Download Button" look like? Could you please
> > >> provide me some artwork for reference. ?
> > >>
> > >> On 2/1/16, Utkarsh Tiwari <[3]iamutkarshtiw...@gmail.com> wrote:
> > >> > Omg! I have been looking all over internet on how to integrate a
> > >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
> > >> > Gtk.CssProvider styler to scale down the progressbar to a button :D
> > >> > Now that(ProgressIcon.py) sounds really cool!
> > >> >
> > >> > Thank you :) You made my work a bit easier ;)
> > >> >
> > >> > On 2/1/16, James Cameron <[4]qu...@laptop.org> wrote:
> > >> >> ProgressBar from Gtk is overkill, we already have a ProgressIcon
> > >> >> in Sugar.
> > >> >>
> > >> >> In sugar-toolkit-gtk3:
> > >> >>
> > >> >> Look at progressicon.py, you will see it does not use a
> ProgressBar,
> > >> >> but has a __draw_cb method connected to the "draw" signal.
> > >> >>
> > >> >> Look at toolbutton.py, you will see it wraps ToolButton do_draw
> > >> >> method.
> > >> >>
> > >> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari wrote:
> > >> >>> "The button to be a blend of ProgressIcon and ToolButton". How to
> > >> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
> > >> >>>
> > >> >>> On 1/27/16, James Cameron <[5]qu...@laptop.org> wrote:
> > >> >>> > No.
> > >> >>> >
> > >> >>> > The position marked by your cursor seems to be inside the URL
> entry
> > >> >>> > box.
> > >> >>> >
> > >> >>> > I said between the URL entry box and the back button.
> > >> >>> >
> > >> >>> > Review the Browse source code that defines these objects.
> > >> >>> >
> > >> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
> > >> >>> >> Is this the exact expected location you were talking about the
> > >> >>> >> 'download button' as shown in the screenshot below?
> > >> >>> >>
> > >> >>> >> [6]http://imgur.com/T0hirTZ
> > >> >>> >>
> > >> >>> >> On 1/27/16, James Cameron <[7]qu...@laptop.org> wrote:
> > >> >>> >> > Thanks for working on this.
> > >> >>> >> >
> > >> >>> >> > Our Sugar human interface guidelines and existing code base
> > >> >>> >> > don't
> > >> >>> >> > have
> > >> >>> >> > decorated floating windows or window management.  Your
> proposal
> > >> >>> >> > would
> > >> >>> >> > not scale to multiple downloads.
> > >> >>> >> >
> > >> >>> >> > You might ask for design suggestions on this mailing list.
> > >> >>> >> >
> > >> >>> >> > I've resisted making design suggestions on this problem
> because
> > >> >>> >> > I
> > >> >>> >> > don't want to constrain the good ideas that may come up.
> > >> >>> >> >
> > >> >>> >> > To get the design conversation started ...
> > >> >>> >> >
> > >> >>> >> > When the first download begins, show a button at the top
> between
> > >> >>> >> > the
> > >> >>> >> > URL entry box and the back button.
> > >> >>> >> >
> > >> >>> >> > The button to be a blend of ProgressIcon and ToolButton, 
> with
> > >> >>> >> > the
> > >> >>> >> > progress fill to show average progress of all downloads.
> > >> >>> >> >
> > >> >>> >> > When the button is pressed a download tab is to be shown in
> the
> > >> >>> >> > canvas, which lists downloads and progress.
> > >> >>> >> >
> > >> >>> >> > The 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-01 Thread James Cameron
A ToolButton normally has an Icon.

Instead of the Icon, assign the ProgressIcon?

As nobody else may have done this, you may need to find and fix any
bugs in ProgressIcon or ToolButton that prevent it.

On Mon, Feb 01, 2016 at 11:31:28PM +0530, Utkarsh Tiwari wrote:
> Is there any way to use a ProgressIcon as a Toolbutton ?
> 
> On 2/1/16, Sam P.  wrote:
> > Hello!
> >
> > Maybe just a large down arrow and fill it vertically?  See
> > 'emblem-downloads' or 'transfer-from' in sugar-artwork.
> >
> > Thanks,
> > Sam
> >
> >
> > On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari 
> > wrote:
> >
> >> How should the Icon for "Download Button" look like? Could you please
> >> provide me some artwork for reference. ?
> >>
> >> On 2/1/16, Utkarsh Tiwari  wrote:
> >> > Omg! I have been looking all over internet on how to integrate a
> >> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
> >> > Gtk.CssProvider styler to scale down the progressbar to a button :D
> >> > Now that(ProgressIcon.py) sounds really cool!
> >> >
> >> > Thank you :) You made my work a bit easier ;)
> >> >
> >> > On 2/1/16, James Cameron  wrote:
> >> >> ProgressBar from Gtk is overkill, we already have a ProgressIcon
> >> >> in Sugar.
> >> >>
> >> >> In sugar-toolkit-gtk3:
> >> >>
> >> >> Look at progressicon.py, you will see it does not use a ProgressBar,
> >> >> but has a __draw_cb method connected to the "draw" signal.
> >> >>
> >> >> Look at toolbutton.py, you will see it wraps ToolButton do_draw
> >> >> method.
> >> >>
> >> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari wrote:
> >> >>> "The button to be a blend of ProgressIcon and ToolButton". How to
> >> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
> >> >>>
> >> >>> On 1/27/16, James Cameron  wrote:
> >> >>> > No.
> >> >>> >
> >> >>> > The position marked by your cursor seems to be inside the URL entry
> >> >>> > box.
> >> >>> >
> >> >>> > I said between the URL entry box and the back button.
> >> >>> >
> >> >>> > Review the Browse source code that defines these objects.
> >> >>> >
> >> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
> >> >>> >> Is this the exact expected location you were talking about the
> >> >>> >> 'download button' as shown in the screenshot below?
> >> >>> >>
> >> >>> >> http://imgur.com/T0hirTZ
> >> >>> >>
> >> >>> >> On 1/27/16, James Cameron  wrote:
> >> >>> >> > Thanks for working on this.
> >> >>> >> >
> >> >>> >> > Our Sugar human interface guidelines and existing code base
> >> >>> >> > don't
> >> >>> >> > have
> >> >>> >> > decorated floating windows or window management.  Your proposal
> >> >>> >> > would
> >> >>> >> > not scale to multiple downloads.
> >> >>> >> >
> >> >>> >> > You might ask for design suggestions on this mailing list.
> >> >>> >> >
> >> >>> >> > I've resisted making design suggestions on this problem because
> >> >>> >> > I
> >> >>> >> > don't want to constrain the good ideas that may come up.
> >> >>> >> >
> >> >>> >> > To get the design conversation started ...
> >> >>> >> >
> >> >>> >> > When the first download begins, show a button at the top between
> >> >>> >> > the
> >> >>> >> > URL entry box and the back button.
> >> >>> >> >
> >> >>> >> > The button to be a blend of ProgressIcon and ToolButton, with
> >> >>> >> > the
> >> >>> >> > progress fill to show average progress of all downloads.
> >> >>> >> >
> >> >>> >> > When the button is pressed a download tab is to be shown in the
> >> >>> >> > canvas, which lists downloads and progress.
> >> >>> >> >
> >> >>> >> > The download tab can be closed like any other tab.
> >> >>> >> >
> >> >>> >> > The button is to be be hidden before any downloads are started,
> >> >>> >> > shown
> >> >>> >> > on start of first download, and only hidden if the download tab
> >> >>> >> > is
> >> >>> >> > closed when there are no downloads still active.
> >> >>> >> >
> >> >>> >> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
> >> >>> >> >> Hi,
> >> >>> >> >>
> >> >>> >> >>  I am trying to integrate the "Download ProgressBar" in the
> >> >>> >> >> download
> >> >>> >> >> manager. Here is the screenshot of the prototype on which I am
> >> >>> >> >> currently
> >> >>> >> >> working -> [1]http://imgur.com/WUJL8eX
> >> >>> >> >>
> >> >>> >> >> Since the download progress bar is popping over the browse
> >> >>> >> >> activity,
> >> >>> >> >> is
> >> >>> >> >> it
> >> >>> >> >> feasible?
> >> >>> >> >>
> >> >>> >> >> regards,
> >> >>> >> >> Utkarsh Tiwari
> >> >>> >> >>
> >> >>> >> >> References:
> >> >>> >> >>
> >> >>> >> >> [1] http://imgur.com/WUJL8eX
> >> >>> >> >
> >> >>> >> >> ___
> >> >>> >> >> Sugar-devel mailing list
> >> >>> >> >> Sugar-devel@lists.sugarlabs.org
> >> >>> >> >> http://lists.sugarlabs.org/listinfo/sugar-devel
> >> >>> >> >
> >> >>> >> >
> >> >>> >> 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-02-01 Thread Utkarsh Tiwari
Is there any way to use a ProgressIcon as a Toolbutton ?

On 2/1/16, Sam P.  wrote:
> Hello!
>
> Maybe just a large down arrow and fill it vertically?  See
> 'emblem-downloads' or 'transfer-from' in sugar-artwork.
>
> Thanks,
> Sam
>
>
> On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari 
> wrote:
>
>> How should the Icon for "Download Button" look like? Could you please
>> provide me some artwork for reference. ?
>>
>> On 2/1/16, Utkarsh Tiwari  wrote:
>> > Omg! I have been looking all over internet on how to integrate a
>> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
>> > Gtk.CssProvider styler to scale down the progressbar to a button :D
>> > Now that(ProgressIcon.py) sounds really cool!
>> >
>> > Thank you :) You made my work a bit easier ;)
>> >
>> > On 2/1/16, James Cameron  wrote:
>> >> ProgressBar from Gtk is overkill, we already have a ProgressIcon
>> >> in Sugar.
>> >>
>> >> In sugar-toolkit-gtk3:
>> >>
>> >> Look at progressicon.py, you will see it does not use a ProgressBar,
>> >> but has a __draw_cb method connected to the "draw" signal.
>> >>
>> >> Look at toolbutton.py, you will see it wraps ToolButton do_draw
>> >> method.
>> >>
>> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari wrote:
>> >>> "The button to be a blend of ProgressIcon and ToolButton". How to
>> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
>> >>>
>> >>> On 1/27/16, James Cameron  wrote:
>> >>> > No.
>> >>> >
>> >>> > The position marked by your cursor seems to be inside the URL entry
>> >>> > box.
>> >>> >
>> >>> > I said between the URL entry box and the back button.
>> >>> >
>> >>> > Review the Browse source code that defines these objects.
>> >>> >
>> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
>> >>> >> Is this the exact expected location you were talking about the
>> >>> >> 'download button' as shown in the screenshot below?
>> >>> >>
>> >>> >> http://imgur.com/T0hirTZ
>> >>> >>
>> >>> >> On 1/27/16, James Cameron  wrote:
>> >>> >> > Thanks for working on this.
>> >>> >> >
>> >>> >> > Our Sugar human interface guidelines and existing code base
>> >>> >> > don't
>> >>> >> > have
>> >>> >> > decorated floating windows or window management.  Your proposal
>> >>> >> > would
>> >>> >> > not scale to multiple downloads.
>> >>> >> >
>> >>> >> > You might ask for design suggestions on this mailing list.
>> >>> >> >
>> >>> >> > I've resisted making design suggestions on this problem because
>> >>> >> > I
>> >>> >> > don't want to constrain the good ideas that may come up.
>> >>> >> >
>> >>> >> > To get the design conversation started ...
>> >>> >> >
>> >>> >> > When the first download begins, show a button at the top between
>> >>> >> > the
>> >>> >> > URL entry box and the back button.
>> >>> >> >
>> >>> >> > The button to be a blend of ProgressIcon and ToolButton, with
>> >>> >> > the
>> >>> >> > progress fill to show average progress of all downloads.
>> >>> >> >
>> >>> >> > When the button is pressed a download tab is to be shown in the
>> >>> >> > canvas, which lists downloads and progress.
>> >>> >> >
>> >>> >> > The download tab can be closed like any other tab.
>> >>> >> >
>> >>> >> > The button is to be be hidden before any downloads are started,
>> >>> >> > shown
>> >>> >> > on start of first download, and only hidden if the download tab
>> >>> >> > is
>> >>> >> > closed when there are no downloads still active.
>> >>> >> >
>> >>> >> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
>> >>> >> >> Hi,
>> >>> >> >>
>> >>> >> >>  I am trying to integrate the "Download ProgressBar" in the
>> >>> >> >> download
>> >>> >> >> manager. Here is the screenshot of the prototype on which I am
>> >>> >> >> currently
>> >>> >> >> working -> [1]http://imgur.com/WUJL8eX
>> >>> >> >>
>> >>> >> >> Since the download progress bar is popping over the browse
>> >>> >> >> activity,
>> >>> >> >> is
>> >>> >> >> it
>> >>> >> >> feasible?
>> >>> >> >>
>> >>> >> >> regards,
>> >>> >> >> Utkarsh Tiwari
>> >>> >> >>
>> >>> >> >> References:
>> >>> >> >>
>> >>> >> >> [1] http://imgur.com/WUJL8eX
>> >>> >> >
>> >>> >> >> ___
>> >>> >> >> Sugar-devel mailing list
>> >>> >> >> Sugar-devel@lists.sugarlabs.org
>> >>> >> >> http://lists.sugarlabs.org/listinfo/sugar-devel
>> >>> >> >
>> >>> >> >
>> >>> >> > --
>> >>> >> > James Cameron
>> >>> >> > http://quozl.netrek.org/
>> >>> >> > ___
>> >>> >> > Sugar-devel mailing list
>> >>> >> > Sugar-devel@lists.sugarlabs.org
>> >>> >> > http://lists.sugarlabs.org/listinfo/sugar-devel
>> >>> >> >
>> >>> >
>> >>> > --
>> >>> > James Cameron
>> >>> > http://quozl.netrek.org/
>> >>> >
>> >>
>> >> --
>> >> James Cameron
>> >> http://quozl.netrek.org/
>> >>
>> >
>> ___
>> Sugar-devel 

Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-01-31 Thread James Cameron
Great!

Documentation in sugar-toolkit-gtk3 is very brief.

Have a look at http://dev.laptop.org/~quozl/z/1aQ0EC.txt for work in
progress documentation fixes for src/sugar3/graphics/progressicon.py.

(Another contributor began fixes, but closed their pull request before
it was merged, so I made an attempt to fix it better.)

On Mon, Feb 01, 2016 at 03:31:44AM +0530, Utkarsh Tiwari wrote:
> Omg! I have been looking all over internet on how to integrate a
> Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
> Gtk.CssProvider styler to scale down the progressbar to a button :D
> Now that(ProgressIcon.py) sounds really cool!
> 
> Thank you :) You made my work a bit easier ;)
> 
> On 2/1/16, James Cameron  wrote:
> > ProgressBar from Gtk is overkill, we already have a ProgressIcon
> > in Sugar.
> >
> > In sugar-toolkit-gtk3:
> >
> > Look at progressicon.py, you will see it does not use a ProgressBar,
> > but has a __draw_cb method connected to the "draw" signal.
> >
> > Look at toolbutton.py, you will see it wraps ToolButton do_draw
> > method.
> >
> > On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari wrote:
> >> "The button to be a blend of ProgressIcon and ToolButton". How to
> >> convert a Gtk.ProgressBar to a Browse ToolButton?
> >>
> >> On 1/27/16, James Cameron  wrote:
> >> > No.
> >> >
> >> > The position marked by your cursor seems to be inside the URL entry
> >> > box.
> >> >
> >> > I said between the URL entry box and the back button.
> >> >
> >> > Review the Browse source code that defines these objects.
> >> >
> >> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
> >> >> Is this the exact expected location you were talking about the
> >> >> 'download button' as shown in the screenshot below?
> >> >>
> >> >> http://imgur.com/T0hirTZ
> >> >>
> >> >> On 1/27/16, James Cameron  wrote:
> >> >> > Thanks for working on this.
> >> >> >
> >> >> > Our Sugar human interface guidelines and existing code base don't
> >> >> > have
> >> >> > decorated floating windows or window management.  Your proposal
> >> >> > would
> >> >> > not scale to multiple downloads.
> >> >> >
> >> >> > You might ask for design suggestions on this mailing list.
> >> >> >
> >> >> > I've resisted making design suggestions on this problem because I
> >> >> > don't want to constrain the good ideas that may come up.
> >> >> >
> >> >> > To get the design conversation started ...
> >> >> >
> >> >> > When the first download begins, show a button at the top between the
> >> >> > URL entry box and the back button.
> >> >> >
> >> >> > The button to be a blend of ProgressIcon and ToolButton, with the
> >> >> > progress fill to show average progress of all downloads.
> >> >> >
> >> >> > When the button is pressed a download tab is to be shown in the
> >> >> > canvas, which lists downloads and progress.
> >> >> >
> >> >> > The download tab can be closed like any other tab.
> >> >> >
> >> >> > The button is to be be hidden before any downloads are started,
> >> >> > shown
> >> >> > on start of first download, and only hidden if the download tab is
> >> >> > closed when there are no downloads still active.
> >> >> >
> >> >> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
> >> >> >> Hi,
> >> >> >>
> >> >> >>      I am trying to integrate the "Download ProgressBar" in the
> >> >> >> download
> >> >> >> manager. Here is the screenshot of the prototype on which I am
> >> >> >> currently
> >> >> >> working -> [1]http://imgur.com/WUJL8eX
> >> >> >>
> >> >> >> Since the download progress bar is popping over the browse
> >> >> >> activity,
> >> >> >> is
> >> >> >> it
> >> >> >> feasible?
> >> >> >>
> >> >> >> regards,
> >> >> >> Utkarsh Tiwari
> >> >> >>
> >> >> >> References:
> >> >> >>
> >> >> >> [1] http://imgur.com/WUJL8eX
> >> >> >
> >> >> >> ___
> >> >> >> Sugar-devel mailing list
> >> >> >> Sugar-devel@lists.sugarlabs.org
> >> >> >> http://lists.sugarlabs.org/listinfo/sugar-devel
> >> >> >
> >> >> >
> >> >> > --
> >> >> > James Cameron
> >> >> > http://quozl.netrek.org/
> >> >> > ___
> >> >> > Sugar-devel mailing list
> >> >> > Sugar-devel@lists.sugarlabs.org
> >> >> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >> >> >
> >> >
> >> > --
> >> > James Cameron
> >> > http://quozl.netrek.org/
> >> >
> >
> > --
> > James Cameron
> > http://quozl.netrek.org/
> >

-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-01-31 Thread James Cameron
I've no idea, sorry.  Perhaps someone else will.

On Mon, Feb 01, 2016 at 03:45:56AM +0530, Utkarsh Tiwari wrote:
> How should the Icon for "Download Button" look like? Could you please
> provide me some artwork for reference. ?
> 
> On 2/1/16, Utkarsh Tiwari  wrote:
> > Omg! I have been looking all over internet on how to integrate a
> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
> > Gtk.CssProvider styler to scale down the progressbar to a button :D
> > Now that(ProgressIcon.py) sounds really cool!
> >
> > Thank you :) You made my work a bit easier ;)
> >
> > On 2/1/16, James Cameron  wrote:
> >> ProgressBar from Gtk is overkill, we already have a ProgressIcon
> >> in Sugar.
> >>
> >> In sugar-toolkit-gtk3:
> >>
> >> Look at progressicon.py, you will see it does not use a ProgressBar,
> >> but has a __draw_cb method connected to the "draw" signal.
> >>
> >> Look at toolbutton.py, you will see it wraps ToolButton do_draw
> >> method.
> >>
> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari wrote:
> >>> "The button to be a blend of ProgressIcon and ToolButton". How to
> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
> >>>
> >>> On 1/27/16, James Cameron  wrote:
> >>> > No.
> >>> >
> >>> > The position marked by your cursor seems to be inside the URL entry
> >>> > box.
> >>> >
> >>> > I said between the URL entry box and the back button.
> >>> >
> >>> > Review the Browse source code that defines these objects.
> >>> >
> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
> >>> >> Is this the exact expected location you were talking about the
> >>> >> 'download button' as shown in the screenshot below?
> >>> >>
> >>> >> http://imgur.com/T0hirTZ
> >>> >>
> >>> >> On 1/27/16, James Cameron  wrote:
> >>> >> > Thanks for working on this.
> >>> >> >
> >>> >> > Our Sugar human interface guidelines and existing code base don't
> >>> >> > have
> >>> >> > decorated floating windows or window management.  Your proposal
> >>> >> > would
> >>> >> > not scale to multiple downloads.
> >>> >> >
> >>> >> > You might ask for design suggestions on this mailing list.
> >>> >> >
> >>> >> > I've resisted making design suggestions on this problem because I
> >>> >> > don't want to constrain the good ideas that may come up.
> >>> >> >
> >>> >> > To get the design conversation started ...
> >>> >> >
> >>> >> > When the first download begins, show a button at the top between
> >>> >> > the
> >>> >> > URL entry box and the back button.
> >>> >> >
> >>> >> > The button to be a blend of ProgressIcon and ToolButton, with the
> >>> >> > progress fill to show average progress of all downloads.
> >>> >> >
> >>> >> > When the button is pressed a download tab is to be shown in the
> >>> >> > canvas, which lists downloads and progress.
> >>> >> >
> >>> >> > The download tab can be closed like any other tab.
> >>> >> >
> >>> >> > The button is to be be hidden before any downloads are started,
> >>> >> > shown
> >>> >> > on start of first download, and only hidden if the download tab is
> >>> >> > closed when there are no downloads still active.
> >>> >> >
> >>> >> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
> >>> >> >> Hi,
> >>> >> >>
> >>> >> >>      I am trying to integrate the "Download ProgressBar" in the
> >>> >> >> download
> >>> >> >> manager. Here is the screenshot of the prototype on which I am
> >>> >> >> currently
> >>> >> >> working -> [1]http://imgur.com/WUJL8eX
> >>> >> >>
> >>> >> >> Since the download progress bar is popping over the browse
> >>> >> >> activity,
> >>> >> >> is
> >>> >> >> it
> >>> >> >> feasible?
> >>> >> >>
> >>> >> >> regards,
> >>> >> >> Utkarsh Tiwari
> >>> >> >>
> >>> >> >> References:
> >>> >> >>
> >>> >> >> [1] http://imgur.com/WUJL8eX
> >>> >> >
> >>> >> >> ___
> >>> >> >> Sugar-devel mailing list
> >>> >> >> Sugar-devel@lists.sugarlabs.org
> >>> >> >> http://lists.sugarlabs.org/listinfo/sugar-devel
> >>> >> >
> >>> >> >
> >>> >> > --
> >>> >> > James Cameron
> >>> >> > http://quozl.netrek.org/
> >>> >> > ___
> >>> >> > Sugar-devel mailing list
> >>> >> > Sugar-devel@lists.sugarlabs.org
> >>> >> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >>> >> >
> >>> >
> >>> > --
> >>> > James Cameron
> >>> > http://quozl.netrek.org/
> >>> >
> >>
> >> --
> >> James Cameron
> >> http://quozl.netrek.org/
> >>
> >

-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-01-31 Thread Utkarsh Tiwari
"The button to be a blend of ProgressIcon and ToolButton". How to
convert a Gtk.ProgressBar to a Browse ToolButton?

On 1/27/16, James Cameron  wrote:
> No.
>
> The position marked by your cursor seems to be inside the URL entry
> box.
>
> I said between the URL entry box and the back button.
>
> Review the Browse source code that defines these objects.
>
> On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
>> Is this the exact expected location you were talking about the
>> 'download button' as shown in the screenshot below?
>>
>> http://imgur.com/T0hirTZ
>>
>> On 1/27/16, James Cameron  wrote:
>> > Thanks for working on this.
>> >
>> > Our Sugar human interface guidelines and existing code base don't have
>> > decorated floating windows or window management.  Your proposal would
>> > not scale to multiple downloads.
>> >
>> > You might ask for design suggestions on this mailing list.
>> >
>> > I've resisted making design suggestions on this problem because I
>> > don't want to constrain the good ideas that may come up.
>> >
>> > To get the design conversation started ...
>> >
>> > When the first download begins, show a button at the top between the
>> > URL entry box and the back button.
>> >
>> > The button to be a blend of ProgressIcon and ToolButton, with the
>> > progress fill to show average progress of all downloads.
>> >
>> > When the button is pressed a download tab is to be shown in the
>> > canvas, which lists downloads and progress.
>> >
>> > The download tab can be closed like any other tab.
>> >
>> > The button is to be be hidden before any downloads are started, shown
>> > on start of first download, and only hidden if the download tab is
>> > closed when there are no downloads still active.
>> >
>> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
>> >> Hi,
>> >>
>> >>      I am trying to integrate the "Download ProgressBar" in the
>> >> download
>> >> manager. Here is the screenshot of the prototype on which I am
>> >> currently
>> >> working -> [1]http://imgur.com/WUJL8eX
>> >>
>> >> Since the download progress bar is popping over the browse activity,
>> >> is
>> >> it
>> >> feasible?
>> >>
>> >> regards,
>> >> Utkarsh Tiwari
>> >>
>> >> References:
>> >>
>> >> [1] http://imgur.com/WUJL8eX
>> >
>> >> ___
>> >> Sugar-devel mailing list
>> >> Sugar-devel@lists.sugarlabs.org
>> >> http://lists.sugarlabs.org/listinfo/sugar-devel
>> >
>> >
>> > --
>> > James Cameron
>> > http://quozl.netrek.org/
>> > ___
>> > Sugar-devel mailing list
>> > Sugar-devel@lists.sugarlabs.org
>> > http://lists.sugarlabs.org/listinfo/sugar-devel
>> >
>
> --
> James Cameron
> http://quozl.netrek.org/
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-01-31 Thread Sam P.
Hello!

Maybe just a large down arrow and fill it vertically?  See
'emblem-downloads' or 'transfer-from' in sugar-artwork.

Thanks,
Sam


On Mon, Feb 1, 2016 at 9:15 AM, Utkarsh Tiwari 
wrote:

> How should the Icon for "Download Button" look like? Could you please
> provide me some artwork for reference. ?
>
> On 2/1/16, Utkarsh Tiwari  wrote:
> > Omg! I have been looking all over internet on how to integrate a
> > Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
> > Gtk.CssProvider styler to scale down the progressbar to a button :D
> > Now that(ProgressIcon.py) sounds really cool!
> >
> > Thank you :) You made my work a bit easier ;)
> >
> > On 2/1/16, James Cameron  wrote:
> >> ProgressBar from Gtk is overkill, we already have a ProgressIcon
> >> in Sugar.
> >>
> >> In sugar-toolkit-gtk3:
> >>
> >> Look at progressicon.py, you will see it does not use a ProgressBar,
> >> but has a __draw_cb method connected to the "draw" signal.
> >>
> >> Look at toolbutton.py, you will see it wraps ToolButton do_draw
> >> method.
> >>
> >> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari wrote:
> >>> "The button to be a blend of ProgressIcon and ToolButton". How to
> >>> convert a Gtk.ProgressBar to a Browse ToolButton?
> >>>
> >>> On 1/27/16, James Cameron  wrote:
> >>> > No.
> >>> >
> >>> > The position marked by your cursor seems to be inside the URL entry
> >>> > box.
> >>> >
> >>> > I said between the URL entry box and the back button.
> >>> >
> >>> > Review the Browse source code that defines these objects.
> >>> >
> >>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
> >>> >> Is this the exact expected location you were talking about the
> >>> >> 'download button' as shown in the screenshot below?
> >>> >>
> >>> >> http://imgur.com/T0hirTZ
> >>> >>
> >>> >> On 1/27/16, James Cameron  wrote:
> >>> >> > Thanks for working on this.
> >>> >> >
> >>> >> > Our Sugar human interface guidelines and existing code base don't
> >>> >> > have
> >>> >> > decorated floating windows or window management.  Your proposal
> >>> >> > would
> >>> >> > not scale to multiple downloads.
> >>> >> >
> >>> >> > You might ask for design suggestions on this mailing list.
> >>> >> >
> >>> >> > I've resisted making design suggestions on this problem because I
> >>> >> > don't want to constrain the good ideas that may come up.
> >>> >> >
> >>> >> > To get the design conversation started ...
> >>> >> >
> >>> >> > When the first download begins, show a button at the top between
> >>> >> > the
> >>> >> > URL entry box and the back button.
> >>> >> >
> >>> >> > The button to be a blend of ProgressIcon and ToolButton, with the
> >>> >> > progress fill to show average progress of all downloads.
> >>> >> >
> >>> >> > When the button is pressed a download tab is to be shown in the
> >>> >> > canvas, which lists downloads and progress.
> >>> >> >
> >>> >> > The download tab can be closed like any other tab.
> >>> >> >
> >>> >> > The button is to be be hidden before any downloads are started,
> >>> >> > shown
> >>> >> > on start of first download, and only hidden if the download tab is
> >>> >> > closed when there are no downloads still active.
> >>> >> >
> >>> >> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
> >>> >> >> Hi,
> >>> >> >>
> >>> >> >>  I am trying to integrate the "Download ProgressBar" in the
> >>> >> >> download
> >>> >> >> manager. Here is the screenshot of the prototype on which I am
> >>> >> >> currently
> >>> >> >> working -> [1]http://imgur.com/WUJL8eX
> >>> >> >>
> >>> >> >> Since the download progress bar is popping over the browse
> >>> >> >> activity,
> >>> >> >> is
> >>> >> >> it
> >>> >> >> feasible?
> >>> >> >>
> >>> >> >> regards,
> >>> >> >> Utkarsh Tiwari
> >>> >> >>
> >>> >> >> References:
> >>> >> >>
> >>> >> >> [1] http://imgur.com/WUJL8eX
> >>> >> >
> >>> >> >> ___
> >>> >> >> Sugar-devel mailing list
> >>> >> >> Sugar-devel@lists.sugarlabs.org
> >>> >> >> http://lists.sugarlabs.org/listinfo/sugar-devel
> >>> >> >
> >>> >> >
> >>> >> > --
> >>> >> > James Cameron
> >>> >> > http://quozl.netrek.org/
> >>> >> > ___
> >>> >> > Sugar-devel mailing list
> >>> >> > Sugar-devel@lists.sugarlabs.org
> >>> >> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >>> >> >
> >>> >
> >>> > --
> >>> > James Cameron
> >>> > http://quozl.netrek.org/
> >>> >
> >>
> >> --
> >> James Cameron
> >> http://quozl.netrek.org/
> >>
> >
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-01-31 Thread Utkarsh Tiwari
Omg! I have been looking all over internet on how to integrate a
Gtk.ProgressBar into Gtk.Toolbutton and I even tried using
Gtk.CssProvider styler to scale down the progressbar to a button :D
Now that(ProgressIcon.py) sounds really cool!

Thank you :) You made my work a bit easier ;)

On 2/1/16, James Cameron  wrote:
> ProgressBar from Gtk is overkill, we already have a ProgressIcon
> in Sugar.
>
> In sugar-toolkit-gtk3:
>
> Look at progressicon.py, you will see it does not use a ProgressBar,
> but has a __draw_cb method connected to the "draw" signal.
>
> Look at toolbutton.py, you will see it wraps ToolButton do_draw
> method.
>
> On Mon, Feb 01, 2016 at 12:10:25AM +0530, Utkarsh Tiwari wrote:
>> "The button to be a blend of ProgressIcon and ToolButton". How to
>> convert a Gtk.ProgressBar to a Browse ToolButton?
>>
>> On 1/27/16, James Cameron  wrote:
>> > No.
>> >
>> > The position marked by your cursor seems to be inside the URL entry
>> > box.
>> >
>> > I said between the URL entry box and the back button.
>> >
>> > Review the Browse source code that defines these objects.
>> >
>> > On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
>> >> Is this the exact expected location you were talking about the
>> >> 'download button' as shown in the screenshot below?
>> >>
>> >> http://imgur.com/T0hirTZ
>> >>
>> >> On 1/27/16, James Cameron  wrote:
>> >> > Thanks for working on this.
>> >> >
>> >> > Our Sugar human interface guidelines and existing code base don't
>> >> > have
>> >> > decorated floating windows or window management.  Your proposal
>> >> > would
>> >> > not scale to multiple downloads.
>> >> >
>> >> > You might ask for design suggestions on this mailing list.
>> >> >
>> >> > I've resisted making design suggestions on this problem because I
>> >> > don't want to constrain the good ideas that may come up.
>> >> >
>> >> > To get the design conversation started ...
>> >> >
>> >> > When the first download begins, show a button at the top between the
>> >> > URL entry box and the back button.
>> >> >
>> >> > The button to be a blend of ProgressIcon and ToolButton, with the
>> >> > progress fill to show average progress of all downloads.
>> >> >
>> >> > When the button is pressed a download tab is to be shown in the
>> >> > canvas, which lists downloads and progress.
>> >> >
>> >> > The download tab can be closed like any other tab.
>> >> >
>> >> > The button is to be be hidden before any downloads are started,
>> >> > shown
>> >> > on start of first download, and only hidden if the download tab is
>> >> > closed when there are no downloads still active.
>> >> >
>> >> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
>> >> >> Hi,
>> >> >>
>> >> >>      I am trying to integrate the "Download ProgressBar" in the
>> >> >> download
>> >> >> manager. Here is the screenshot of the prototype on which I am
>> >> >> currently
>> >> >> working -> [1]http://imgur.com/WUJL8eX
>> >> >>
>> >> >> Since the download progress bar is popping over the browse
>> >> >> activity,
>> >> >> is
>> >> >> it
>> >> >> feasible?
>> >> >>
>> >> >> regards,
>> >> >> Utkarsh Tiwari
>> >> >>
>> >> >> References:
>> >> >>
>> >> >> [1] http://imgur.com/WUJL8eX
>> >> >
>> >> >> ___
>> >> >> Sugar-devel mailing list
>> >> >> Sugar-devel@lists.sugarlabs.org
>> >> >> http://lists.sugarlabs.org/listinfo/sugar-devel
>> >> >
>> >> >
>> >> > --
>> >> > James Cameron
>> >> > http://quozl.netrek.org/
>> >> > ___
>> >> > Sugar-devel mailing list
>> >> > Sugar-devel@lists.sugarlabs.org
>> >> > http://lists.sugarlabs.org/listinfo/sugar-devel
>> >> >
>> >
>> > --
>> > James Cameron
>> > http://quozl.netrek.org/
>> >
>
> --
> James Cameron
> http://quozl.netrek.org/
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-01-26 Thread James Cameron
No.

The position marked by your cursor seems to be inside the URL entry
box.

I said between the URL entry box and the back button.

Review the Browse source code that defines these objects.

On Wed, Jan 27, 2016 at 11:39:03AM +0530, Utkarsh Tiwari wrote:
> Is this the exact expected location you were talking about the
> 'download button' as shown in the screenshot below?
> 
> http://imgur.com/T0hirTZ
> 
> On 1/27/16, James Cameron  wrote:
> > Thanks for working on this.
> >
> > Our Sugar human interface guidelines and existing code base don't have
> > decorated floating windows or window management.  Your proposal would
> > not scale to multiple downloads.
> >
> > You might ask for design suggestions on this mailing list.
> >
> > I've resisted making design suggestions on this problem because I
> > don't want to constrain the good ideas that may come up.
> >
> > To get the design conversation started ...
> >
> > When the first download begins, show a button at the top between the
> > URL entry box and the back button.
> >
> > The button to be a blend of ProgressIcon and ToolButton, with the
> > progress fill to show average progress of all downloads.
> >
> > When the button is pressed a download tab is to be shown in the
> > canvas, which lists downloads and progress.
> >
> > The download tab can be closed like any other tab.
> >
> > The button is to be be hidden before any downloads are started, shown
> > on start of first download, and only hidden if the download tab is
> > closed when there are no downloads still active.
> >
> > On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
> >> Hi,
> >>
> >>      I am trying to integrate the "Download ProgressBar" in the download
> >> manager. Here is the screenshot of the prototype on which I am currently
> >> working -> [1]http://imgur.com/WUJL8eX
> >>
> >> Since the download progress bar is popping over the browse activity, is
> >> it
> >> feasible?
> >>
> >> regards,
> >> Utkarsh Tiwari
> >>
> >> References:
> >>
> >> [1] http://imgur.com/WUJL8eX
> >
> >> ___
> >> Sugar-devel mailing list
> >> Sugar-devel@lists.sugarlabs.org
> >> http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> >
> > --
> > James Cameron
> > http://quozl.netrek.org/
> > ___
> > Sugar-devel mailing list
> > Sugar-devel@lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
> >

-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-01-26 Thread Utkarsh Tiwari
Is this the exact expected location you were talking about the
'download button' as shown in the screenshot below?

http://imgur.com/T0hirTZ

On 1/27/16, James Cameron  wrote:
> Thanks for working on this.
>
> Our Sugar human interface guidelines and existing code base don't have
> decorated floating windows or window management.  Your proposal would
> not scale to multiple downloads.
>
> You might ask for design suggestions on this mailing list.
>
> I've resisted making design suggestions on this problem because I
> don't want to constrain the good ideas that may come up.
>
> To get the design conversation started ...
>
> When the first download begins, show a button at the top between the
> URL entry box and the back button.
>
> The button to be a blend of ProgressIcon and ToolButton, with the
> progress fill to show average progress of all downloads.
>
> When the button is pressed a download tab is to be shown in the
> canvas, which lists downloads and progress.
>
> The download tab can be closed like any other tab.
>
> The button is to be be hidden before any downloads are started, shown
> on start of first download, and only hidden if the download tab is
> closed when there are no downloads still active.
>
> On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
>> Hi,
>>
>>      I am trying to integrate the "Download ProgressBar" in the download
>> manager. Here is the screenshot of the prototype on which I am currently
>> working -> [1]http://imgur.com/WUJL8eX
>>
>> Since the download progress bar is popping over the browse activity, is
>> it
>> feasible?
>>
>> regards,
>> Utkarsh Tiwari
>>
>> References:
>>
>> [1] http://imgur.com/WUJL8eX
>
>> ___
>> Sugar-devel mailing list
>> Sugar-devel@lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> James Cameron
> http://quozl.netrek.org/
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Download Manager ProgressBar [DESIGN]

2016-01-26 Thread James Cameron
Thanks for working on this.

Our Sugar human interface guidelines and existing code base don't have
decorated floating windows or window management.  Your proposal would
not scale to multiple downloads.

You might ask for design suggestions on this mailing list.

I've resisted making design suggestions on this problem because I
don't want to constrain the good ideas that may come up.

To get the design conversation started ...

When the first download begins, show a button at the top between the
URL entry box and the back button.

The button to be a blend of ProgressIcon and ToolButton, with the
progress fill to show average progress of all downloads.

When the button is pressed a download tab is to be shown in the
canvas, which lists downloads and progress.

The download tab can be closed like any other tab.

The button is to be be hidden before any downloads are started, shown
on start of first download, and only hidden if the download tab is
closed when there are no downloads still active.

On Tue, Jan 26, 2016 at 06:08:32PM +0530, Utkarsh Tiwari wrote:
> Hi,
> 
>      I am trying to integrate the "Download ProgressBar" in the download
> manager. Here is the screenshot of the prototype on which I am currently
> working -> [1]http://imgur.com/WUJL8eX 
> 
> Since the download progress bar is popping over the browse activity, is it
> feasible?
> 
> regards,
> Utkarsh Tiwari
> 
> References:
> 
> [1] http://imgur.com/WUJL8eX

> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Download Manager ProgressBar

2016-01-26 Thread Utkarsh Tiwari
Hi,

 I am trying to integrate the "Download ProgressBar" in the download
manager. Here is the screenshot of the prototype on which I am currently
working -> http://imgur.com/WUJL8eX

Since the download progress bar is popping over the browse activity, is it
feasible?

regards,
Utkarsh Tiwari
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Download Manager ProgressBar

2016-01-22 Thread James Cameron
On Fri, Jan 22, 2016 at 10:27:29PM +0530, Utkarsh Tiwari wrote:
> Could anyone please specify the expected features for the
> ProgressBar integration in the download alerts. I would like to work
> on this feature enhancement.

You have given no references.

If you are referring to my ticket #4721.
https://bugs.sugarlabs.org/ticket/4721

No, specific features are not what I expect, instead I expect
solutions to the issues.  The issues are:

- "This web page could not be loaded" is displayed even though
  download starts and completes.

- it is not possible to see, in Browse, that a download is in
  progress.

I don't see how adding a progress bar to a download alert would help.

Because after the alert is dismissed, Browse does not say that a
download is in progress.

-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] Download Manager ProgressBar

2016-01-22 Thread Utkarsh Tiwari
Hi,
 Could anyone please specify the expected features for the ProgressBar
integration in the download alerts. I would like to work on this feature
enhancement.

regards,
Utkarsh
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel