viscal

cairo/gtk vi-like timeblocking calendar
git clone git://jb55.com/viscal
Log | Files | Refs | README | LICENSE

commit 0f64b106a22d46715847efc3937158cad051a61e
parent 9f4fe17abda88a7fd00c1fd77dae1e1a6e72d90d
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 16 Aug 2018 18:46:52 -0700

load all calendars

Diffstat:
Mviscal.c | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/viscal.c b/viscal.c @@ -444,7 +444,6 @@ on_press(GtkWidget *widget, GdkEventButton *ev, gpointer user_data) { cal->flags |= CAL_MDOWN; cal->target = events_hit(cal->events, cal->nevents, mx, my); if (cal->target) { - cal->target->dragx_start = mx; cal->target->dragy_off = cal->target->y - my; cal->target->dragx_off = cal->target->x - mx; } @@ -950,9 +949,11 @@ int main(int argc, char *argv[]) if (argc < 2) usage(); - printf("loading calendar %s\n", argv[1]); - ical = calendar_load_ical(&cal, argv[1]); - ical->color = defcol; + for (int i = 1; i < argc; i++) { + printf("loading calendar %s\n", argv[i]); + ical = calendar_load_ical(&cal, argv[i]); + ical->color = defcol; + } on_change_view(&cal);