28
Aug
09

N900 videos

Following up to my post on the N900, I thought of adding the videos of the N900 too. So without further ado,

 

And another one which is a small introduction of Maemo,

 

And as a bonus let me also share a bit of the code that Nokia released to get all you Maemo and Linux based developers started…

 

/**
* gtk_helloworld-1.c
*
* This maemo code example is licensed under a MIT-style license,
* that can be found in the file called “License” in the same
* directory as this file.
* Copyright (c) 2007-2008 Nokia Corporation. All rights reserved.
*
* A simple GTK+ Hello World. You need to use Ctrl+C to terminate
* this program since it doesn’t implement GTK+ signals (yet).
*/

#include /* EXIT_* */
/* Introduce types and prototypes of GTK+ for the compiler. */
#include

int main(int argc, char** argv) {

/* We’ll have two references to two GTK+ widgets. */
GtkWindow* window;
GtkLabel* label;

/* Initialize the GTK+ library. */
gtk_init(&argc, &argv);

/* Create a window with window border width of 12 pixels and a
title text. */
window = g_object_new(GTK_TYPE_WINDOW,
“border-width”, 12,
“title”, “Hello GTK+”,
NULL);

/* Create the label widget. */
label = g_object_new(GTK_TYPE_LABEL,
“label”, “Hello World!”,
NULL);

/* Pack the label into the window layout. */
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(label));

/* Show all widgets that are contained by the window. */
gtk_widget_show_all(GTK_WIDGET(window));

/* Start the main event loop. */
g_print(”main: calling gtk_main\n”);
gtk_main();

/* Display a message to the standard output and exit. */
g_print(”main: returned from gtk_main and exiting with success\n”);

/* The C standard defines this condition as EXIT_SUCCESS, and this
symbolic macro is defined in stdlib.h (which GTK+ will pull in
in-directly). There is also a counter-part for failures:
EXIT_FAILURE. */
return EXIT_SUCCESS;
}

Now I don’t know how helpful it is, but this is certainly a good way to build rapport with the software programmers. Good going Nokia and Maemo!

Source for the code: http://acurrie.posterous.com/hows-this-for-open-nokia-posts-some-code-to-g


1 Response to “N900 videos”


  1. 1 Khushal Bhatia
    August 29, 2009 at 6:44 pm

    Good to see Nokia comming with new software OS. Hope when it is launched, we get third party applications readily. N900 is a beautiful cell phone, hope it does not hang like some S60 based devices.


Leave a Reply




Mobile code

Aditya Singhvi's Phones

Archives

Follow me on Twitter

Technorati

Add to Technorati Favorites

AddThis

AddThis Feed Button

My blog is worth only this much!

WOM World updates!

WOM World

My Themes