MildenhallMetaInfoHeader

MildenhallMetaInfoHeader — MildenhallMetaInfoHeader widget designed basically to show organize header data (title info).

Functions

MildenhallMetaInfoHeader * mildenhall_meta_info_header_new ()

Description

MildenhallMetaInfoHeader widget designed to show title information. Using this, an application can show an icon followed by the text in the left-most side as well as right-most side. It also supports to show the text in the center using 'mid-text' property. In addition, the signal "MildenhallMetaInfoHeader::icon-toggled" is emitted on any of the icon click if it contains more than one state. (ie.e if the icon present at the left/right side is a toggled button which contains DEFAULT/SELECTED states).

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
GObject *object = NULL;
ThornburyModel *header_model = NULL;
ThornburyItemFactory *item_factory = NULL;
ClutterActor *header = NULL;

item_factory = thornbury_item_factory_generate_widget_with_props (
      MILDENHALL_TYPE_META_INFO_HEADER,
      "/usr/share/mildenhall/mildenhall_meta_info_header_prop.json");

g_object_get (item_factory, "object", &object, NULL);
header = CLUTTER_ACTOR (object);

header_model = (ThornburyModel*) thornbury_list_model_new (COLUMN_NONE,
                                                          G_TYPE_POINTER, NULL,
                                                          G_TYPE_STRING, NULL,
                                                          G_TYPE_STRING, NULL, -1);

thornbury_model_append (header_model,
                       COLUMN_LEFT_ICON_TEXT, "/usr/var/lib/MILDENHALL_extensions/themes/blau/test-drawer-baseicon_music_AC.png",
                       COLUMN_MID_TEXT, "MUSIC DERFASD AWra wer Araerase",
                       COLUMN_RIGHT_ICON_TEXT, NULL,
                       -1);
g_object_set (header, "model", header_model, NULL);
clutter_actor_add_child (stage, header);

Functions

mildenhall_meta_info_header_new ()

MildenhallMetaInfoHeader *
mildenhall_meta_info_header_new (void);

Returns

a new MildenhallMetaInfoHeader.

[transfer floating]

Types and Values

See Also

ThornburyItemFactory, ClutterActor