maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   daperl's PoRN (https://talk.maemo.org/showthread.php?t=50515)

daperl 2010-04-19 23:32

daperl's PoRN
 
daperl's Place of Random Notes


Etc

How to start your very own Conversations

daperl 2010-04-19 23:32

Re: daperl's PoRN
 
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.

daperl 2010-04-19 23:33

Re: daperl's PoRN
 
1 Attachment(s)
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.

SavageD 2010-04-20 00:01

Re: daperl's PoRN
 
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

Venemo 2010-04-20 02:07

Re: daperl's PoRN
 
This is quite nice.

Can it be done with Qt?

bandora 2010-04-20 02:09

Re: daperl's PoRN
 
Oh man the title got me! :(

Pretty cool though none-the-less!

qwerty12 2010-04-20 06:05

Re: daperl's PoRN
 
Quote:

Originally Posted by daperl (Post 618574)
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.

unkno 2010-04-20 06:08

Re: daperl's PoRN
 
Where's the porn? :(

skianik 2010-04-20 06:32

Re: daperl's PoRN
 
@unkno
Place Of Random Notes

daperl 2010-04-20 17:08

Re: daperl's PoRN
 
qwerty12 is the Man, but GtkViewport might be the Devil

Quote:

Originally Posted by qwerty12 (Post 618842)
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.

Quote:

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]


All times are GMT. The time now is 12:11.

vBulletin® Version 3.8.8