[maemo-developers] Aw: Re: Fremantle user interface behaviour and API
From: Cornelius Hald hald at icandy.deDate: Mon May 18 12:12:12 EEST 2009
- Previous message: Aw: Re: Fremantle user interface behaviour and API
- Next message: Aw: Re: Fremantle user interface behaviour and API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, 2009-05-14 at 15:12 +0200, API wrote: > From: Cornelius Hald <hald at icandy.de> > > > > > Tree View > > > > I changes the code from using gtk_tree_view_new() to > > > > hildon_gtk_tree_view_new(). I thought this would give me a finger friendly > > > > version of the tree view, but I cannot see a difference between the hildon and > > > > the gtk version. Also the different HildonUIModes have no effect for me. What > > > > is the supposed outcome? How do I get the tree view to be finger friendly? I'm > > > > using a GtkListStore as backend and the view shows two sortable columns - if > > > > that matters. > > If you want to see the differences between the HildonUIModes, you can try to > take a look to the hildon-pannable-area-touch-list-example, included on the > examples directories. AFAIK, the example package is not included with the > beta, but you can download the hildon-widgets source code and compile it > by yourself. This example compare the two hildon modes and the "old > behaviour". Thanks, I didn't know that there were examples... I downloaded and compiled them. Now it's time for playing :) > > > To avoid breaking legacy applications, the proper theming is done only > > > to treeviews inside a pannable area. If you put your treeview inside a pannable > > > area, you'll get finger-friendly sized rows. > > > > Ok, I changed that too and the result is looking good. > > Still I have two more questions: > > 1. Which signal gets emitted when one of the rows is selected? > > This is still a normal treeview, you use hildon_gtk_tree_view_new only to ensure > to get the proper theming. So when one of the rows are selected the GtkTreeSelection > of this treeview emits the signal "changed" [1]. I checked my code again and yes, the signals are emitted. The problem was, that I was using gtk_tree_view_get_selection() inside a "row-activated" handler which does not work with the hildonized tree view. I changed my code to use the provided GtkTreePath and now it's working fine. > In the same way, recently a new signal was added to the maemo-flavoured gtk, so > if a row is tapped on the treeview, the treeview emits the signal "hildon-row-tapped", > this could be useful to you too although I'm not sure if it was included on this beta, > take a look to the gtk code to confirm that. I tried and it is included in the beta SDK. In which way should that be different from "row-activated"? For me it looks like both are doing the same. So I'll stick to "row-activated" for now. > I hope this helps It helped a lot. Thank you very much!
- Previous message: Aw: Re: Fremantle user interface behaviour and API
- Next message: Aw: Re: Fremantle user interface behaviour and API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]