| Top |
| GtkWidget * | e_split_date_edit_new () |
| void | e_split_date_edit_set_format () |
| const gchar * | e_split_date_edit_get_format () |
| void | e_split_date_edit_set_ymd () |
| void | e_split_date_edit_get_ymd () |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkContainer
╰── GtkGrid
╰── ESplitDateEdit
ESplitDateEdit implements AtkImplementorIface, GtkBuildable and GtkOrientable.
The ESplitDateEdit allows to edit date with each part split. Either of the year, month and day parts can be unset, which is recognized by using a zero value for that part.
GtkWidget *
e_split_date_edit_new (void);
Creates a new ESplitDateEdit.
Since: 3.60
void e_split_date_edit_set_format (ESplitDateEdit *self,const gchar *format);
Sets the date format to be used to place the year, month
and day widgets in the given order. The format is expected
to be as for the strftime. Parts which cannot be recognized
in the string are added at the end in an order year, month
and then day. When a NULL format
is used, the actual
format is tried to be recognized from the current locale.
Since: 3.60
const gchar *
e_split_date_edit_get_format (ESplitDateEdit *self);
Returns previously set format for the parts order by
the e_split_date_edit_set_format(). The NULL means
to use the format from the current locale.
Since: 3.60
void e_split_date_edit_set_ymd (ESplitDateEdit *self,guint year,guint month,guint day);
Sets the date shown in the self
. Either of the parts can
be zero (or otherwise out of bounds) to indicate that part
is not set.
Since: 3.60
void e_split_date_edit_get_ymd (ESplitDateEdit *self,guint *out_year,guint *out_month,guint *out_day);
Returns the current set date in the self
. The unset
parts have set zero as their value.
self |
||
out_year |
return location for the year part. |
[out] |
out_month |
return location for the month part. |
[out] |
out_day |
return location for the day part. |
[out] |
Since: 3.60
“changed” signalvoid user_function (ESplitDateEdit *esplitdateedit, gpointer user_data)
Flags: Run First