[maemo-developers] Aw: Re: Fremantle user interface behaviour and API
From: API apinheiro at igalia.comDate: Thu May 14 16:12:55 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 ]
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". > > > > 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]. 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 hope this helps === API (apinheiro at igalia.com) [1] http://library.gnome.org/devel/gtk/stable/GtkTreeSelection.html#GtkTreeSelection-changed
- 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 ]