Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    daperl's PoRN

    Reply
    Page 1 of 3 | 1   2     3   | Next
    daperl | # 1 | 2010-04-19, 23:32 | Report

    daperl's Place of Random Notes


    Etc

    How to start your very own Conversations
    • qwerty12 is the Man, but GtkViewport might be the Devil
    • Nope, Portrait Mode is the Devil, and GtkViewport is his spawn
    • Bad fisherman cast their nets in NULL infested waters
    • If you get hit by a tidal wave, it's an understatement if your epitaph says you were in over your head

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by daperl; 2010-04-25 at 01:08.
    The Following 9 Users Say Thank You to daperl For This Useful Post:
    juiceme, MohammadAG, noobmonkey, Sohil876, Switch_, tissot, Venemo, w00t, Xagoln

     
    daperl | # 2 | 2010-04-19, 23:32 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to daperl For This Useful Post:
    juiceme

     
    daperl | # 3 | 2010-04-19, 23:33 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    Attached Files
    File Type: gz converse.tar.gz (10.5 KB, 327 views)
    The Following 4 Users Say Thank You to daperl For This Useful Post:
    juiceme, noobmonkey, qwerty12, Texrat

     
    SavageD | # 4 | 2010-04-20, 00:01 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to SavageD For This Useful Post:
    juiceme

     
    Venemo | # 5 | 2010-04-20, 02:07 | Report

    This is quite nice.

    Can it be done with Qt?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Venemo For This Useful Post:
    juiceme

     
    bandora | # 6 | 2010-04-20, 02:09 | Report

    Oh man the title got me!

    Pretty cool though none-the-less!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to bandora For This Useful Post:
    juiceme

     
    qwerty12 | # 7 | 2010-04-20, 06:05 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to qwerty12 For This Useful Post:
    daperl, juiceme, Xagoln

     
    unkno | # 8 | 2010-04-20, 06:08 | Report

    Where's the porn?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to unkno For This Useful Post:
    juiceme

     
    skianik | # 9 | 2010-04-20, 06:32 | Report

    @unkno
    Place Of Random Notes

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to skianik For This Useful Post:
    juiceme

     
    daperl | # 10 | 2010-04-20, 17:08 | Report

    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.

    Originally Posted by
    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]

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by daperl; 2010-04-20 at 20:04.
    The Following 3 Users Say Thank You to daperl For This Useful Post:
    juiceme, qwerty12, Venemo

     
    Page 1 of 3 | 1   2     3   | Next
vBulletin® Version 3.8.8
Normal Logout