ungana

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README

commit 7cb81b77114dcdfb66c08114050eb526971bd150
parent 84a1f8cadea489fe2525fe8d14814382cba8f1f9
Author: Carlosokumu <carlosokumu254@gmail.com>
Date:   Thu, 25 Sep 2025 21:41:52 +0300

add missing ical fields

Diffstat:
Mungana/gui/event.py | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/ungana/gui/event.py b/ungana/gui/event.py @@ -114,6 +114,18 @@ class EventWindow(Gtk.Window): entry.connect('clicked', self.show_open_dialog) self.box_main.append(entry) + title = Gtk.Label(label="Poster") + self.box_main.append(title) + entry = Gtk.Entry() + self.entry_poster = entry + self.box_main.append(entry) + + title = Gtk.Label(label="Long") + self.box_main.append(title) + entry = Gtk.Entry() + self.entry_long = entry + self.box_main.append(entry) + title = Gtk.Label(label="Geo coordinates") self.box_main.append(title) entry = Gtk.Entry(placeholder_text="lat") @@ -243,6 +255,14 @@ class EventWindow(Gtk.Window): status = ICalHelper.extract_ical_field(ev,"STATUS") self.entry_status.set_text(str(status)) + + atts = ICalHelper.extract_ical_attachments(ev) + for att in atts: + if att['ctx'] == "poster": + self.entry_poster.set_text(f"{att['fmt']}: {att['value']}") + elif att['ctx'] == "long": + self.entry_long.set_text(f"{att['fmt']}: {att['value']}") + v = ev.get('geo') if v.latitude: self.entry_geo_lat.set_text(str(v.latitude))