Reply
Thread Tools
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#1
 

The Following 9 Users Say Thank You to daperl For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#2
Etc

This is kind of an experiment, and I hope Reggie lets me squat here, but like other developers, I've spread some of my development bits around the forum, but moving forward I want to try and maybe dump them in this thread instead. At the moment, I prefer this forum format to a formal blog, but we'll see how it goes.

A few months ago, I decided that trying to mimic, and then maybe enhance, the mediaplayer was as good as any place to learn and explore the n900. I made satisfying progress which I hope to return to in the not too distant future, but recently I've been playing with the Conversations app.
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful 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, 317 views)
__________________
N9: Go white or go home
 

The Following 4 Users Say Thank You to daperl For This Useful Post:
Posts: 436 | Thanked: 406 times | Joined on Jan 2010
#4
o.o maybe the title should change a bit...lmao took me a while to figure out that porn meant (Place Of Random Notes) .....xD, I actually taught some dude was making an application for porn
 

The Following User Says Thank You to SavageD For This Useful Post:
Venemo's Avatar
Posts: 1,296 | Thanked: 1,773 times | Joined on Aug 2009 @ Budapest, Hungary
#5
This is quite nice.

Can it be done with Qt?
 

The Following User Says Thank You to Venemo For This Useful Post:
bandora's Avatar
Posts: 1,338 | Thanked: 1,055 times | Joined on Oct 2009 @ California, USA / Jordan
#6
Oh man the title got me!

Pretty cool though none-the-less!
__________________
FarahFa.com
 

The Following User Says Thank You to bandora For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#7
Originally Posted by daperl View Post
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.
The opensource FriendStatus app which appears to be utilizing RtcommLogView also has the ability for its top buttons to scroll. And it's made by a Nokia employee.

Thanks for the contents of your PoRN thread. Wacking off to source code is the best way to start a morning, I find.
 

The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
unkno's Avatar
Posts: 266 | Thanked: 157 times | Joined on Oct 2009
#8
Where's the porn?
 

The Following User Says Thank You to unkno For This Useful Post:
Posts: 5 | Thanked: 3 times | Joined on Mar 2010 @ n.j , u.s.a
#9
@unkno
Place Of Random Notes
 

The Following User Says Thank You to skianik For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#10
qwerty12 is the Man, but GtkViewport might be the Devil

Originally Posted by qwerty12 View Post
The opensource FriendStatus app which appears to be utilizing RtcommLogView also has the ability for its top buttons to scroll. And it's made by a Nokia employee.
Dude, thank you, this is brilliant. He did exactly what I thought needed to be done; he forces the style properties with these two lines:

Code:
gtk_widget_set_name (priv->log_view,
        "friend-status::timeline-view::timeline-view");
gtk_rc_parse_string (
        "widget \"*.friend-status::timeline-view::timeline-view\""
        " style \"fremantle-touchlist\"");
He writes some very good code; I should leave my cave more often.

For some reason, that is probably not a bug, when you use the "_with_viewport" calls the fremantle styles get lost. I'm guessing it has to do with placing a non-hildon widget between two hildon/Nokia widgets. I encourage anyone who knows to weigh in here.

Thanks for the contents of your PoRN thread. Wacking off to source code is the best way to start a morning, I find.
[George Carlin]And I have no ending response to this joke, so I just take a bow.[/George Carlin]
__________________
N9: Go white or go home

Last edited by daperl; 2010-04-20 at 20:04.
 

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

Tags
code orgy

Thread Tools

 
Forum Jump


All times are GMT. The time now is 07:59.