N900 videos

Aug 28th, 20091 Comment

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_mainn”);
gtk_main();

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

/* 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

About author:

Aditya Singhvi is the Editor in Chief and the man behind World of Phones. He loves mobile phones and can never get enough of them. He’s known for using too many phones and numbers at the same time. He is absolutely content with having more than 2 cell phones with him.

All entries by

  • Khushal Bhatia

    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.

Weboy
WordPress Theme PandaThemes