Comment #4 on issue 185 by coreyoconnor: Tabs not supported in GTK or other  
non-Vty UIs
http://code.google.com/p/yi-editor/issues/detail?id=185

The UI.Vty code just renders tab bar from a GUI agnostic description using  
styled
text. In theory anyways. What should be contained in the tab bar should be  
described
in a GUI agnostic fashion in the module UI.TabBar.

The first equation the GTK frontend should use when rendering the tab bar is
UI.TabBar.tabBarDesc. This produces a TabBarDescr given an Editor. Once  
this tab bar
description is acquired the description should be mapped to a GTK widget or  
set of
GTK widgets. This mapping is where things get tricky.

A quick hack would be to render the tab bar using just style text (same as  
UI.Vty) to
a 1 line high text field. This, of though, doesn't take advantage of the  
styling and
interaction capabilities a GTK UI has over the pure text UI of Vty.

 From browsing the GTK widget gallery
(http://library.gnome.org/devel/gtk/stable/ch02.html) the notebook widget  
is clearly
the closest to a tabbar UI. However depending on how the notebook widget  
implements
it's paging through the different tabs we may have to attack the problem on  
a lower
level.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to