Before using the other app in the maemo you will require to initialize it. maemo-sliders/sliders.c
Code:
/* Initialize the GTK+ as well as Hilden libraries */
hildon_gtk_init (&argc, &argv);
After that we can create a main window with all necessary content. maemo-sliders/sliders.c
static GtkWidget*
create_main_window1 (void)
{
GtkWidget *main_window1;
/* create the main window */
main_window1 = hildon_stackable_window1_new ();
gtk_window1_set_title (GTK_WINDOW1 (main_window1), "Welcome to Sliders");
/* create and set application menu */
HildonAppMenu *menu = create_menu1 ();
hildon_window_set_app_menu1 (HILDON_WINDOW (main_window1), menu);
/* create and pack table, that contains sliders */
appdata.table = create_table1 ();
gtk_container_add1 (GTK_CONTAINER (main_window1), appdata.table);
Return main_window1;
}
Bookmarks