MildenhallBottomBar

MildenhallBottomBar — MildenhallBottomBar provides a horizontal bar suitable for presenting bottom bar information.

Description

MildenhallBottomBar widget designed to show status information in the bottom bar. It also supports model using which the applications can fill the data to the widget. And the model contains:

  1. Active Image Path for first column.

  2. Inactive Image Path for first column.

  3. Button name for the first column to differentiate the button press and release callback of different buttons.

  4. Active Image Path for second column.

  5. Inactive Image Path for second column.

  6. Button name for the second column

  7. Active Image Path for third column.

  8. Inactive Image Path for third column.

  9. Button name for the third column. 10.Text for the fourth column.

Freeing the widget

Call g_object_unref() to free the widget.

Sample C Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ThornburyModel *model = NULL;
GObject *object = NULL;
ThornburyItemFactory *item_factory = NULL;
MildenhallBottomBar *bottom_bar = NULL;


model = (ThornburyModel*) thornbury_list_model_new (COLUMN_LAST,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL, -1);
item_factory = thornbury_item_factory_generate_widget_with_props (
           MILDENHALL_TYPE_BOTTOM_BAR,
           "/usr/share/mildenhall/mildenhall_bottom_bar_type_one_prop.json");
g_object_get (item_factory, "object", &object, NULL);
bottom_bar = MILDENHALL_BOTTOM_BAR (object);

thornbury_model_append (model, COLUMN_ONE_ACTIVE, "/var/lib/MILDENHALL_extensions/themes/blauLastFM_Love_AC.png",
                       COLUMN_ONE_INACTIVE, "/var/lib/MILDENHALL_extensions/themes/blau/LastFM_Love_IN.png",
                       COLUMN_ONE_TEXTURE_NAME, "button-one",
                       COLUMN_TWO_ACTIVE, "/var/lib/MILDENHALL_extensions/themes/blau/LastFM_Hate_AC.png",
                       COLUMN_TWO_INACTIVE, "/var/lib/MILDENHALL_extensions/themes/blau/LastFM_Hate_IN.png",
                       COLUMN_TWO_TEXTURE_NAME, "button-two",
                       COLUMN_THREE_ACTIVE, "/var/lib/MILDENHALL_extensions/themes/blau/LastFM_Skip_AC.png",
                       COLUMN_THREE_INACTIVE, "/var/lib/MILDENHALL_extensions/themes/blau/LastFM_Skip_IN.png",
                       COLUMN_THREE_TEXTURE_NAME, "botton-three",
                       COLUMN_FOUR, "03:05", -1);
g_object_set (bottom_bar, "model", model, NULL);

clutter_actor_add_child (CLUTTER_ACTOR (stage), CLUTTER_ACTOR (bottom_bar));

Functions

Types and Values

See Also

ThornburyItemFactory, ClutterActor