day_edit_item() updated to use apoint_hilt()
This commit is contained in:
parent
406a0b2b2f
commit
9fdc33133c
@ -1,4 +1,4 @@
|
|||||||
/* $calcurse: day.c,v 1.28 2007/08/04 15:11:47 culot Exp $ */
|
/* $calcurse: day.c,v 1.29 2007/08/15 15:37:10 culot Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calcurse - text-based organizer
|
* Calcurse - text-based organizer
|
||||||
@ -450,7 +450,7 @@ day_edit_time(long time) {
|
|||||||
|
|
||||||
/* Edit an already existing item. */
|
/* Edit an already existing item. */
|
||||||
void
|
void
|
||||||
day_edit_item(int item_num)
|
day_edit_item(void)
|
||||||
{
|
{
|
||||||
#define STRT '1'
|
#define STRT '1'
|
||||||
#define END '2'
|
#define END '2'
|
||||||
@ -467,6 +467,7 @@ day_edit_item(int item_num)
|
|||||||
long date, newtime = 0;
|
long date, newtime = 0;
|
||||||
int cancel, ch = 0, valid_date = 0, newfreq = 0, date_entered = 0;
|
int cancel, ch = 0, valid_date = 0, newfreq = 0, date_entered = 0;
|
||||||
int newmonth, newday, newyear;
|
int newmonth, newday, newyear;
|
||||||
|
int item_num;
|
||||||
unsigned hr, mn;
|
unsigned hr, mn;
|
||||||
char *timestr, *typestr, *freqstr;
|
char *timestr, *typestr, *freqstr;
|
||||||
char *msg_norecur =
|
char *msg_norecur =
|
||||||
@ -493,6 +494,7 @@ day_edit_item(int item_num)
|
|||||||
char *mesg_until_1 =
|
char *mesg_until_1 =
|
||||||
_("Enter the new ending date: [mm/dd/yyyy] or '0'");
|
_("Enter the new ending date: [mm/dd/yyyy] or '0'");
|
||||||
|
|
||||||
|
item_num = apoint_hilt();
|
||||||
p = day_get_item(item_num);
|
p = day_get_item(item_num);
|
||||||
date = calendar_get_slctd_day_sec();
|
date = calendar_get_slctd_day_sec();
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $calcurse: day.h,v 1.14 2007/07/28 13:11:42 culot Exp $ */
|
/* $calcurse: day.h,v 1.15 2007/08/15 15:37:10 culot Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calcurse - text-based organizer
|
* Calcurse - text-based organizer
|
||||||
@ -64,7 +64,7 @@ day_items_nb_t *day_process_storage(date_t *, bool, day_items_nb_t *);
|
|||||||
void day_write_pad(long, int, int, int);
|
void day_write_pad(long, int, int, int);
|
||||||
void day_popup_item(void);
|
void day_popup_item(void);
|
||||||
int day_check_if_item(date_t);
|
int day_check_if_item(date_t);
|
||||||
void day_edit_item(int);
|
void day_edit_item(void);
|
||||||
int day_erase_item(long, int, int);
|
int day_erase_item(long, int, int);
|
||||||
struct day_item_s *day_get_item(int);
|
struct day_item_s *day_get_item(int);
|
||||||
int day_item_nb(long, int, int);
|
int day_item_nb(long, int, int);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user