Re: GtkTreeView



Havos,

thank you for reply. I write Java application, which uses JNI to work with
native widgets, including GTK+ widgets. In my case special handling of RTL
mode is to define corresponding value of default text direction or text
direction of particular widget. GtkCTree,probably, was not perfect, but it
was text direction's sensetive...

Semion




                                                                                                              
                                     
                      Havoc Pennington                                                                        
                                     
                      <hp redhat com>          To:       Semion Chichelnitsky/Israel/IBM IBMIL                
                                     
                                               cc:       gtk-app-devel-list gnome org                         
                                     
                      10/12/02 23:20           Subject:  Re: GtkTreeView                                      
                                     
                                                                                                              
                                     
                                                                                                              
                                     
                                                                                                              
                                     



On Tue, Dec 10, 2002 at 04:53:25PM +0200, Semion Chichelnitsky wrote:

I am building RTL application and would like to use GtkTreeView and
GtkTextView. Can I create tree, wich expanded from rigt to left? Can I
write right-aligned text into the TextView with WRAP_NONE mode?


Your application should require no special handling of RTL mode.  If
the user is running in a RTL locale, such as hebrew, then GTK widgets
should automatically flip.

In GTK 2.0 not all widgets support it, e.g. GtkTreeView doesn't. But
GtkTextView should just be working for you automatically - have you
tried running in an RTL locale?

GTK 2.2 fixes a lot of the widgets that didn't work before, I don't
know if GtkTreeView is fixed yet. It should not be hard to fix,
really, if you wanted to code up a patch we could integrate it.

In any case, you should simply be using the GTK API normally, if
you're special-casing RTL then you're doing something wrong.

Havoc








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]