1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 An object that represents an application running in the Hildon framework.
7 <!-- ##### SECTION Long_Description ##### -->
11 The HildonProgram is an object used to represent an application running
12 in the Hildon framework.
14 Such an application is thought to have one or more HildonWindow. These
15 shall be registered to the HildonProgram with hildon_program_add_window,
16 and can be unregistered similarly with hildon_program_remove_window.
18 The HildonProgram provides the programmer with commodities such
19 as applying a common toolbar and menu to all the HildonWindow
20 registered to it. This is done with hildon_program_set_common_menu()
21 and hildon_program_set_common_toolbar().
23 The HildonProgram is also used to apply program-wide properties that
24 are specific to the Hildon framework. For instance
25 hildon_program_set_can_hibernate() sets whether or not an application
26 can be set to hibernate by the Hildon task navigator, in situations of
31 HildonProgram *program;
32 HildonWindow *first_window;
33 HildonWindow *second_window;
34 GtkToolbar *common_toolbar, *window_specific_toolbar;
37 program = HILDON_PROGRAM (hildon_program_new());
39 window1 = HILDON_WINDOW (hildon_window_new());
40 window2 = HILDON_WINDOW (hildon_window_new());
42 common_toolbar = create_common_toolbar();
43 window_specific_toolbar = create_window_specific_toolbar();
47 hildon_program_add (program, window1);
48 hildon_program_add (program, window2);
50 hildon_program_set_common_menu (program, menu);
52 hildon_program_set_common_toolbar (program, common_toolbar);
53 hildon_window_add_toolbar (first_window, window_specific_toolbar);
55 hildon_program_set_can_hibernate (program, TRUE);
66 <!-- ##### SECTION See_Also ##### -->
71 <!-- ##### FUNCTION hildon_program_get_instance ##### -->
79 <!-- ##### FUNCTION hildon_program_add_window ##### -->
88 <!-- ##### FUNCTION hildon_program_remove_window ##### -->
97 <!-- ##### FUNCTION hildon_program_set_can_hibernate ##### -->
106 <!-- ##### FUNCTION hildon_program_get_can_hibernate ##### -->
115 <!-- ##### FUNCTION hildon_program_set_common_menu ##### -->
124 <!-- ##### FUNCTION hildon_program_get_common_menu ##### -->
133 <!-- ##### FUNCTION hildon_program_set_common_toolbar ##### -->
142 <!-- ##### FUNCTION hildon_program_get_common_toolbar ##### -->
151 <!-- ##### FUNCTION hildon_program_get_is_topmost ##### -->