Thread: daperl's PoRN
View Single Post
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#3
How to start your very own Conversations

I just wanted to share how little code it takes to get the very front end of the Conversations app up and running. There won't be any screen shots today, but I did attach the code and the executable. I threw in rudimentary auto-rotation, and I also implemented quick-and-dirtier links to the actual conversations. By quick-and-dirtier I mean that I reused Nokia's RTComLogView widget to display them, although it doesn't do what you'd expect. But instead of enhancing and reusing this closed-source widget for the conversations, Nokia instead decided to embed a web page. And it doesn't look like this widget has been generalized in PR1.2. Anyway, the next step is to asynchronously catch and release actual conversation messages to and from the UI I've shown elsewhere.

I haven't figured out the right combination yet of how Nokia gets the top buttons to scroll without messing up the RTComLogView styling, but on deep inspection I noticed there's two hidden buttons inside the RTComLogView that I unsuccessfully tried to show. Also, there's at least two public functions missing from the online docs:

Code:
HildonTreeViewRowHeaderFunc hildon_tree_view_get_row_header_func(GtkTreeView *tree_view);
void hildon_tree_view_set_row_header_func (GtkTreeView *tree_view,
    HildonTreeViewRowHeaderFunc func,
    gpointer data,
    GDestroyNotify destroy);
but I haven't tried to use them yet.
Attached Files
File Type: gz converse.tar.gz (10.5 KB, 319 views)
__________________
N9: Go white or go home
 

The Following 4 Users Say Thank You to daperl For This Useful Post: