Smallbox

Smallbox — Small input box.

Synopsis




struct      box_desc;
struct      box_desc2;
gboolean    smallbox_x                      (gchar *title,
                                             struct box_desc *d);
gboolean    smallbox_x2                     (gchar *title,
                                             struct box_desc2 *d);
gchar*      smallbox                        (gchar *title,
                                             gchar *labeltext,
                                             gchar *dval);

Description

Functions to create a simple inputbox offering multiple selections or an input field.

Details

struct box_desc

struct box_desc {
  gchar *label;
  gchar *value;
};


struct box_desc2

struct box_desc2 {
  gchar *label;
  gchar *value;
  GList *suggestions;
};


smallbox_x ()

gboolean    smallbox_x                      (gchar *title,
                                             struct box_desc *d);

title :
d :
Returns :

smallbox_x2 ()

gboolean    smallbox_x2                     (gchar *title,
                                             struct box_desc2 *d);

title :
d :
Returns :

smallbox ()

gchar*      smallbox                        (gchar *title,
                                             gchar *labeltext,
                                             gchar *dval);

This function displays an input dialog box to query a user for text input.

title :Dialog title
labeltext :Query text displayed inside the box.
dval :Default value
Returns :Entered text if user taps OK, NULL otherwise.