MildenhallSelectionPopup

MildenhallSelectionPopup — An user popup which shall be used to display the options to the user.

Functions

Properties

GObject * popup-model Read / Write
gboolean remove Write

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── ClutterActor
            ╰── LightwoodPopupBase
                ╰── MildenhallSelectionPopup

Includes

#include <include/mildenhall_roller_container.h>

Description

MildenhallSelectionPopup implements LightwoodPopupBase and is designed to provide the options to the user. It supports model, using which the applications can fill the following data required for the popup. One option among them can be selected and the information for the same can be communicated to the respective application.

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
ThornburyItemFactory *item_factory;
GObject *object = NULL;
MildenhallSelectionPopup *selection_popup = NULL;
ClutterActor *popup = NULL;
ThornburyModel *model= NULL;

item_factory = thornbury_item_factory_generate_widget_with_props (
          MILDENHALL_TYPE_SELECTION_POPUP,
          "/usr/share/mildenhall/test_mildenhall_selection_popup_prop.json");

g_object_get (item_factory, "object", &object, NULL);
selection_popup = MILDENHALL_SELECTION_POPUP (object);
popup = CLUTTER_ACTOR (selection_popup);

model = (ThornburyModel*) thornbury_list_model_new (SELECTION_POPUP_COLUMN_LAST,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_STRING, NULL,
                                                   G_TYPE_POINTER, NULL,
                                                   -1);
thornbury_model_append (model,
                       TEXT_ENTRY_MSGSTYLE, "static",
                       TEXT_ENTRY_MSGTEXT, "The site could be temporarily unavailable or too busy.",
                       IMAGEICON_KEY, "AppIcon",
                       IMAGEPATH_VALUE, "var/lib/MILDENHALL_extensions/themes/blau/icon_request_inactive.png",
                       -1);

thornbury_model_append (model,
                       TEXT_ENTRY_MSGSTYLE, "dynamic",
                       TEXT_ENTRY_MSGTEXT, "hello world an MILDENHALL and phsase IIIIIII",
                       IMAGEICON_KEY, "MsgIcon",
                       IMAGEPATH_VALUE, "var/lib/MILDENHALL_extensions/themes/blau/icon_request_inactive.png",
                       -1);
v_mildenhall_selection_popup_show (selection_popup);

Functions

v_mildenhall_selection_popup_hide ()

void
v_mildenhall_selection_popup_hide (MildenhallSelectionPopup *pSelectionPopup);

Function to hide the popup with animation

Parameters

pObject

MildenhallSelectionPopup * object reference

 

v_mildenhall_selection_popup_show ()

void
v_mildenhall_selection_popup_show (MildenhallSelectionPopup *pSelectionPopup);

Function to display the popup with animation

Parameters

pObject

MildenhallSelectionPopup * object reference

 

mildenhall_selection_popup_new ()

ClutterActor *
mildenhall_selection_popup_new (void);

Creates a MildenhallSelectionPopup

Returns

returns a new MildenhallSelectionPopup.

[transfer full]

Types and Values

Property Details

The “popup-model” property

  “popup-model”              GObject *

Model information of popup widget.

Flags: Read / Write


The “remove” property

  “remove”                   gboolean

boolean to decide whether to replace or remove the Row when conflicting row Id is found.

Flags: Write

Default value: FALSE

See Also

ClutterActor, ThornburyItemFactory