diff options
author | Chris Larson <clarson@kergoth.com> | 2004-11-09 00:36:47 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-11-09 00:36:47 +0000 |
commit | f96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch) | |
tree | edb17ec2c4ea13c5acb1c7350957a249a820e28d /gpe-calendar | |
parent | b6588aa6851fb220cedc387d21c51513ef8d67f4 (diff) |
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'gpe-calendar')
-rw-r--r-- | gpe-calendar/gpe-calendar-0.55/fix-multiple-new.patch | 41 | ||||
-rw-r--r-- | gpe-calendar/gpe-calendar-0.55/weekly-default.patch | 51 |
2 files changed, 92 insertions, 0 deletions
diff --git a/gpe-calendar/gpe-calendar-0.55/fix-multiple-new.patch b/gpe-calendar/gpe-calendar-0.55/fix-multiple-new.patch index e69de29bb2..882d68da2a 100644 --- a/gpe-calendar/gpe-calendar-0.55/fix-multiple-new.patch +++ b/gpe-calendar/gpe-calendar-0.55/fix-multiple-new.patch @@ -0,0 +1,41 @@ +Index: main.c +=================================================================== +RCS file: /cvs/gpe/base/gpe-calendar/main.c,v +retrieving revision 1.90 +diff -b -B -u -r1.90 main.c +--- main.c 10 Aug 2004 10:40:31 -0000 1.90 ++++ main.c 18 Aug 2004 13:25:56 -0000 +@@ -49,6 +49,7 @@ + GList *times; + time_t viewtime; + gboolean force_today = FALSE; ++gboolean just_new = FALSE; + + GtkWidget *main_window, *pop_window; + GtkWidget *notebook; +@@ -172,10 +173,24 @@ + } while (w != NULL); + } + ++static gboolean ++do_reset_new(gpointer d) ++{ ++ just_new = FALSE; ++ return FALSE; ++} ++ + static void + new_appointment (void) + { +- GtkWidget *appt = new_event (viewtime, 0); ++ GtkWidget *appt; ++ ++ if (just_new) ++ return; ++ just_new = TRUE; ++ g_timeout_add(2000, do_reset_new, NULL); ++ ++ appt = new_event (viewtime, 0); + gtk_widget_show (appt); + } + diff --git a/gpe-calendar/gpe-calendar-0.55/weekly-default.patch b/gpe-calendar/gpe-calendar-0.55/weekly-default.patch index e69de29bb2..844f6b9299 100644 --- a/gpe-calendar/gpe-calendar-0.55/weekly-default.patch +++ b/gpe-calendar/gpe-calendar-0.55/weekly-default.patch @@ -0,0 +1,51 @@ +Index: event-ui.c +=================================================================== +RCS file: /cvs/gpe/base/gpe-calendar/event-ui.c,v +retrieving revision 1.107 +diff -u -r1.107 event-ui.c +--- event-ui.c 5 Aug 2004 15:52:07 -0000 1.107 ++++ event-ui.c 24 Aug 2004 17:18:26 -0000 +@@ -93,6 +93,7 @@ + g_free (p); + } + ++ + static void + recalculate_sensitivities (GtkWidget *widget, + GtkWidget *d) +@@ -182,6 +183,26 @@ + } + } + ++ ++static void ++weekly_toggled (GtkWidget *widget, ++ GtkWidget *d) ++{ ++ struct edit_state *s = g_object_get_data (G_OBJECT (d), "edit_state"); ++ if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) ++ { ++ if (!s->ev || !s->ev->recur || !s->ev->recur->daymask) ++ { ++ time_t t = time(NULL); ++ struct tm *lt = localtime(&t); ++ ++ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (s->checkbuttonwday[(lt->tm_wday+6)%7]), TRUE); ++ } ++ } ++ recalculate_sensitivities(widget, d); ++} ++ ++ + static void + unschedule_alarm (event_t ev) + { +@@ -1061,7 +1082,7 @@ + g_signal_connect (G_OBJECT (radiobuttondaily), "toggled", + G_CALLBACK (recalculate_sensitivities), window); + g_signal_connect (G_OBJECT (radiobuttonweekly), "toggled", +- G_CALLBACK (recalculate_sensitivities), window); ++ G_CALLBACK (weekly_toggled), window); + g_signal_connect (G_OBJECT (radiobuttonmonthly), "toggled", + G_CALLBACK (recalculate_sensitivities), window); + g_signal_connect (G_OBJECT (radiobuttonyearly), "toggled", |