Add file importing dialog

Add a file importing dialog, and pass through files received from command
line.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/5
This commit is contained in:
Georges Basile Stavracas Neto
2021-08-16 18:26:21 -03:00
parent a080d8ec0f
commit e689f18b1e
15 changed files with 1582 additions and 1 deletions
+43
View File
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GcalImportFileRow" parent="GtkListBoxRow">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="activatable">False</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<!-- File name label -->
<child>
<object class="GtkLabel" id="filename_label">
<property name="can-focus">False</property>
<property name="margin-top">12</property>
<property name="xalign">0.0</property>
<attributes>
<attribute name="weight" value="bold" />
</attributes>
</object>
</child>
<!-- Event preview listbox -->
<child>
<object class="GtkListBox" id="events_listbox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="selection-mode">none</property>
<style>
<class name="content" />
</style>
</object>
</child>
</object>
</child>
</template>
</interface>