## GpeTimeSel

GpeTimeSel — Time selection widget

## Synopsis

                GpeTimeSel;
                GpeTimeSelClass;
    GtkWidget*  gpe_time_sel_new                ();
    void        gpe_time_sel_get_time           (GpeTimeSel *sel,
                                                 guint *hour,
                                                 guint *minute);
    void        gpe_time_sel_set_time           (GpeTimeSel *sel,
                                                 guint hour,
                                                 guint minute);

## Description

This widget is used to enter time values. It displays an editing field for a time value and an extra button which opens a time selection popup.

## Details

### GpeTimeSel

    typedef struct {
      GtkHBox hbox;

      GtkObject *hour_adj, *minute_adj;
      GtkWidget *hour_spin, *minute_spin;
      GtkWidget *label;
      GtkWidget *button;
      GtkWidget *popup;
    } GpeTimeSel;

### GpeTimeSelClass

    typedef struct _GpeTimeSelClass GpeTimeSelClass;

### gpe_time_sel_new ()

    GtkWidget*  gpe_time_sel_new                ();

This method is used to create a new GpeTimeSel widget.

Returns : | New widget

### gpe_time_sel_get_time ()

    void        gpe_time_sel_get_time           (GpeTimeSel *sel,
                                                 guint *hour,
                                                 guint *minute);

Retrieve current time value from a GpeTimeSel. The time is split up into separate values for hour and minute.

`sel` : | Widget
`hour` : | Value to hold selected hour.
`minute` : | Value to hold selected minute.

### gpe_time_sel_set_time ()

    void        gpe_time_sel_set_time           (GpeTimeSel *sel,
                                                 guint hour,
                                                 guint minute);

Set the time of the time selectior. We set hour and minute in separate values passed to the method.

`sel` : | Widget
`hour` : | Hour value to set.
`minute` : | Minute value to set.