Prompts before printing.
This commit is contained in:
parent
689c3eb551
commit
a105ab2d36
2 changed files with 13 additions and 2 deletions
|
|
@ -21,6 +21,8 @@ http://www.newbreedsoftware.com/tuxpaint/
|
|||
* Added some more brushes.
|
||||
Jeremie Zimmermann <txptdv@tofz.org>
|
||||
|
||||
* Now prompts to confirm before printing.
|
||||
|
||||
* Updated/corrected Tamil translation
|
||||
Mugunth <mugunth@thamizha.com>
|
||||
|
||||
|
|
|
|||
|
|
@ -814,6 +814,10 @@ int main(int argc, char * argv[])
|
|||
#define PROMPT_OPEN_NOFILES_TXT gettext_noop("There are no saved files!")
|
||||
#define PROMPT_OPEN_NOFILES_YES gettext_noop("Okay")
|
||||
|
||||
#define PROMPT_PRINT_NOW_TXT gettext_noop("Print your picture now?")
|
||||
#define PROMPT_PRINT_NOW_YES gettext_noop("Yes")
|
||||
#define PROMPT_PRINT_NOW_NO gettext_noop("No")
|
||||
|
||||
#define PROMPT_PRINT_TXT gettext_noop("Your picture has been printed!")
|
||||
#define PROMPT_PRINT_YES gettext_noop("Okay")
|
||||
|
||||
|
|
@ -1408,9 +1412,14 @@ void mainloop(void)
|
|||
|
||||
if (cur_time >= last_print_time + print_delay)
|
||||
{
|
||||
do_print();
|
||||
if (do_prompt(PROMPT_PRINT_NOW_TXT,
|
||||
PROMPT_PRINT_NOW_YES,
|
||||
PROMPT_PRINT_NOW_NO))
|
||||
{
|
||||
do_print();
|
||||
|
||||
last_print_time = cur_time;
|
||||
last_print_time = cur_time;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue