Merge pull request #2902 from xordspar0/patch-1

Add documentation about textclock format
This commit is contained in:
mergify[bot] 2019-10-11 06:04:46 +00:00 committed by GitHub
commit 3340a7dce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -28,9 +28,11 @@ if source_date_epoch and os.getenv("SOURCE_DIRECTORY") then
end end
end end
--- Set the clock's format --- Set the clock's format.
-- For information about the format specifiers, see
-- [the GLib docs](https://developer.gnome.org/glib/stable/glib-GDateTime.html#g-date-time-format).
-- @property format -- @property format
-- @tparam string format The new time format. This can contain pango markup -- @tparam string format The new time format. This can contain pango markup.
function textclock:set_format(format) function textclock:set_format(format)
self._private.format = format self._private.format = format