Create a new GcalDateChooserRow widget from AdwEntryRow that parses the entry into a date, or lets the user pick a date from a popover.
33 lines
1.2 KiB
C
33 lines
1.2 KiB
C
/* gcal-date-chooser-row.h
|
|
*
|
|
* Copyright (C) 2024 Titouan Real <titouan.real@gmail.com>
|
|
*
|
|
* gnome-calendar is free software: you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the
|
|
* Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* gnome-calendar is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
* See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <adwaita.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GCAL_TYPE_DATE_CHOOSER_ROW (gcal_date_chooser_row_get_type ())
|
|
G_DECLARE_FINAL_TYPE (GcalDateChooserRow, gcal_date_chooser_row, GCAL, DATE_CHOOSER_ROW, AdwEntryRow)
|
|
|
|
GDateTime* gcal_date_chooser_row_get_date (GcalDateChooserRow *self);
|
|
void gcal_date_chooser_row_set_date (GcalDateChooserRow *self,
|
|
GDateTime *date);
|
|
|
|
G_END_DECLS
|