struct              GpwStrftime;
struct              GpwStrftimeClass;

Object Hierarchy


Implemented Interfaces

GpwStrftime implements AtkImplementorIface and GtkBuildable.


  "format"                   gchar*                : Read / Write
  "period"                   guint                 : Read / Write


GpwStrftime is GtkLabel widget with its content based on strftime(): as such it can show any string returned by strftime(). This allows to express both date and time throught a single or different labels based on the same widget.

The GpwStrftime:format property specifies the template argument to pass to strftime(). There is an hardcoded limit of 255 chars for label length.

With GpwStrftime:period (an unsigned integer value expressed in milliseconds) you can fine tune the frequency of updates. Setting it to 0 will disable the updating of tha label.


struct GpwStrftime

struct GpwStrftime;

All fields are private and should not be used directly. Use its public methods instead.

struct GpwStrftimeClass

struct GpwStrftimeClass {

Property Details

The "format" property

  "format"                   gchar*                : Read / Write

The format to use as template for strftime().

Default value: NULL

The "period" property

  "period"                   guint                 : Read / Write

The time frame (in milliseconds) between two updates.

Default value: 0