#2999 NORM Trial-3: gtk.TextView widget doesn't follow the spec

Zarro Boogs per Child bugtracker at laptop.org
Sun Aug 26 14:13:23 EDT 2007


#2999: gtk.TextView widget doesn't follow the spec
------------------------+---------------------------------------------------
  Reporter:  tomeu      |       Owner:  benzea 
      Type:  defect     |      Status:  new    
  Priority:  normal     |   Milestone:  Trial-3
 Component:  gtk-theme  |     Version:         
Resolution:             |    Keywords:         
  Verified:  0          |  
------------------------+---------------------------------------------------
Comment (by benzea):

 OK, I have changed the base colour to be white. I also hacked the
 GtkScrolledWindow style to look relative nice if it has a shadow and
 scrollbars. (And disabled the focus drawing.)


 We will probably need a GtkTreeView subclass. There we could do some
 hacks:
  1. If the treeview is non-editable, copy the bg and fg colours into base
 and text colours. This seems to be the sanest way to me to achieve the
 correct effect and has the advantage that it can be toggled by the
 activity easily.[[BR]](EdsipeR mentioned that using a gtk.TextView for
 non-editable text may also be desirable because it is more powerful then a
 gtk.Label)
  2. Scrolled windows with a scrollbar visible need to have a forced
 shadow. GTK+ does not handle this. (We could create a small
 gtk.ScrolledWindow subclass which does this.)

 In the theme itself I still need to check the colour of selections, which
 are probably wrong, for at least non-editable text.

-- 
Ticket URL: <https://dev.laptop.org/ticket/2999#comment:2>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list