[Sugar-devel] [PATCH] Browse: tabs usability improved

manuel quiñones manuq at laptop.org
Wed Sep 7 07:58:22 EDT 2011


Hi,

El día 6 de septiembre de 2011 07:48, Simon Schampijer
<simon at schampijer.de> escribió:
> On 09/05/2011 08:44 PM, Manuel Quiñones wrote:
>>
>> The Add Tab button has been relocated next to the tab labels, allowing
>> more space for the URL entry.
>>
>> Tabs are always shown.  There is at least one tab.  In that case, it
>> cannot be closed.  We prevent the closing by hidding the 'X' button.
>> Also, the close image was sugarized.
>>
>> There is now a fixed width for tabs.  The label text does ellipsize.
>> The width depends on the amount of tabs.  There is a maximun size that
>> is used when there is extra space.  There is a minimun size to prevent
>> hiding the information.
>>
>> When a new tab is opened, it now shows an empty page, not the default
>> page.  In the future, we will add a hint in this empty page, similar
>> to what we have for an empty Journal.
>>
>> Added the option to "follow link in new tab" in the link's palette.
>> Added an icon for this item, and also the icon for "follow link" is
>> also updated.
>
> Wow, this is great stuff!
>
> As always, some small comments :)

Thanks for your detailed feedback and changes, I'm resending my patch
based on them:

> - when you open a new tab FF is setting the label to 'Untitled' (see patch
> untitled.patch)

Right! Added.

> - when we have a new tab open, enter a url and then load it we see a
> 'about:blank' shortly, we can show 'Loading...' like FF there (see loading.
> patch (there might be better ways of doing it but the timing looks like it
> is the same as FF))

Added too.

> - 3 tabs open: when using the 'follow link in new tab' option in tab_index=1
> the new tab is appended to the list of open tabs - will be tab_index=3, in
> FF it will be the tab right next to tab_index=1 (tab_index=2) (maybe just
> try to open a link in a new tab from any tab in FF not the one a the right
> to see :)

Good.  I've implemented it.

> - when you select a tab, one gets the white ellipse. if you compare with the
> the old toolbar (you can see in Memorize) which is a notebook as well you do
> not get the ellipse when selecting with a single click, however you do get
> it when you double click once: I did try and looked through the properties
> (border, can-focus...) but no property does seem to fix it, what is funny if
> you change the BrowserNotebook to derive from a gtk.Notebook istead of the
> sugar.graphics.notebook.Notebook we get the same behavior as with the
> old-style toolbars, hmmmm

The same behaviour happens in Terminal.  I don't know what needs to be
changed.  Is there any problem with this behaviour?

> - coloring of the tabs: the currently selected one should maybe have the
> same color as the toolbar, we should maybe do similar than in the old-style
> toolbar?

I played with gtk styles but I didn't include that changes in my
resended patch.  Maybe it is better to do this in Sugar theme?

Regards,

-- 
.. manuq ..


More information about the Sugar-devel mailing list