Top | ![]() |
![]() |
![]() |
![]() |
void | gcal_window_set_search_mode () |
void | gcal_window_set_search_query () |
void | gcal_window_open_event_by_uuid () |
icaltimetype * | active-date | Read / Write |
GcalWindowView | active-view | Read / Write |
GcalManager * | manager | Read / Write / Construct Only |
gboolean | new-event-mode | Read / Write |
GcalTimeFormat | time-format | Read / Write |
GcalWeatherService * | weather-service | Read / Write / Construct Only |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkWindow ╰── GtkApplicationWindow ╰── GcalWindow
GcalWindow implements AtkImplementorIface, GtkBuildable, GActionGroup and GActionMap.
GcalWindow is the main window of GNOME Calendar, and contains the views, the source dialog, the edit dialog, and manages the calendar toggler popover menu.
Besides that, GcalWindow is also responsible for GcalQuickAddPopover, and it responds to the “create-event” signal by positioning the quick add popover at the requested position.
The calendar popover enables/disables the selected calendars.
This is simply an UI for gcal_manager_enable_source()
and
gcal_manager_disable_source()
.
The calendar popover also contains a button to open the source dialog.
When an event is clicked, the views send the event-activated
signal. GcalWindow responds to this signal opening GcalEditDialog
with the clicked event.
When GcalEditDialog sends a response, GcalWindow reacts by
either propagating to gcal_manager_update_event()
, or hiding
the delete event widgets from the views.
The interaction with the source dialog is almost none. GcalWindow just shows and hides it.
void gcal_window_set_search_mode (GcalWindow *self
,gboolean enabled
);
Sets whether GcalWindow is in search mode. This is used by GcalShellSearchProvider to respond to the user clicking on GNOME Calendar icon at the search.
void gcal_window_set_search_query (GcalWindow *self
,const gchar *query
);
Sets the search query of the search. GcalWindow only propagates this to the search bar, which ends up triggering the search.
void gcal_window_open_event_by_uuid (GcalWindow *self
,const gchar *uuid
);
Tells self
to open the event with uuid
. When it fails to
open the event, it waits for 2 seconds before trying again.
“active-date”
property “active-date” icaltimetype *
The active/selected date.
Flags: Read / Write
“active-view”
property “active-view” GcalWindowView
The active view, eg: month, week, etc.
Flags: Read / Write
Default value: GCAL_WINDOW_VIEW_MONTH
“manager”
property“manager” GcalManager *
The manager object.
Flags: Read / Write / Construct Only
“new-event-mode”
property “new-event-mode” gboolean
Whether the window is in new-event-mode or not.
Flags: Read / Write
Default value: FALSE
“time-format”
property “time-format” GcalTimeFormat
The time format of the computer.
Flags: Read / Write
Default value: GCAL_TIME_FORMAT_24H