summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2012-11-01 16:04:53 +0000
committerPaul Gardiner <paulg.artifex@glidos.net>2012-11-01 16:04:53 +0000
commit2fb4c3456691f240aeb5807296a3b51cbaeb50d1 (patch)
tree01350bef8342ad972ab2642564ca68163e2ca643 /apps
parentf3ffb15def9ba38f78188197d63db7021411a284 (diff)
downloadmupdf-2fb4c3456691f240aeb5807296a3b51cbaeb50d1.tar.xz
Forms: extend setFillColor implementation to include text widgets
Also update pdf_dict_puts so that passing NULL to val deletes the terminal key. Update pdfapp.c to update the screen between passing a mouse event and invoking a dialog box for value entry Extend javascript wrapper to handle all color spaces
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfapp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index 0b684744..598b40b5 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -1297,6 +1297,9 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
widget = fz_focused_widget(idoc);
+ app->nowaitcursor = 1;
+ pdfapp_updatepage(app);
+
if (widget)
{
switch (fz_widget_get_type(widget))
@@ -1315,6 +1318,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
while (current_text && !fz_text_widget_set_text(idoc, widget, current_text));
fz_free(app->ctx, text);
+ pdfapp_updatepage(app);
}
break;
@@ -1340,7 +1344,10 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
(void)fz_choice_widget_value(idoc, widget, vals);
if (winchoiceinput(app, nopts, opts, &nvals, vals))
+ {
fz_choice_widget_set_value(idoc, widget, nvals, vals);
+ pdfapp_updatepage(app);
+ }
}
fz_always(ctx)
{
@@ -1356,8 +1363,6 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
}
}
- app->nowaitcursor = 1;
- pdfapp_updatepage(app);
app->nowaitcursor = 0;
processed = 1;
}