dteske
a0eece4606
Improve portion of the dialog(1) API in dialog.subr responsible for
...
calculating widget sizes. Instead of forking a sub-shell to calculate the
optimum size for a widget, use a byRef style call-out to set variables in
the parent namespace. For example, instead of:
size=$( f_dialog_buttonbox_size title btitle msg )
$DIALOG --title title --backtitle btitle --msgbox msg $size
The new API replaces the above with the following:
f_dialog_buttonbox_size height width title btitle msg
$DIALOG --title title --backtitle btitle --msgbox msg $height $width
This reduces the number of forks, improves performance, and makes the code
more readable by revealing the argument-order for widget sizing. It also
makes performing minor adjustments to the calculated values easier as
you no longer have to split-out the response (which required knowledge of
ordering so was counter-intuitive).
2013-05-31 19:07:17 +00:00
..
2013-03-17 06:54:04 +00:00
2013-05-31 17:23:38 +00:00
2013-05-03 23:51:32 +00:00
2013-05-11 10:51:32 +00:00
2013-04-19 19:45:00 +00:00
2013-05-03 01:16:18 +00:00
2013-03-30 17:46:03 +00:00
2013-03-19 07:25:58 +00:00
2013-05-23 05:42:35 +00:00
2013-05-12 22:22:12 +00:00
2013-05-31 19:07:17 +00:00
2013-05-11 13:46:05 +00:00
2013-05-12 13:42:49 +00:00
2012-11-15 15:21:58 +00:00
2013-05-23 05:42:35 +00:00
2013-01-16 05:00:51 +00:00
2012-10-25 22:54:29 +00:00
2013-02-05 02:57:59 +00:00
2013-05-10 09:58:32 +00:00
2013-01-03 00:49:11 +00:00
2012-10-22 03:00:37 +00:00
2013-05-10 16:41:26 +00:00
2012-11-20 02:12:01 +00:00
2013-04-02 05:30:41 +00:00
2013-04-19 19:45:00 +00:00
2013-05-12 22:22:12 +00:00
2012-10-19 14:49:42 +00:00
2013-05-02 12:43:56 +00:00
2013-01-03 22:27:57 +00:00
2013-01-20 19:44:33 +00:00
2012-12-15 18:21:09 +00:00
2012-10-19 14:49:42 +00:00
2013-05-23 05:42:35 +00:00
2013-05-17 08:48:16 +00:00
2013-05-03 23:51:32 +00:00
2013-02-14 14:44:08 +00:00
2012-10-29 03:31:22 +00:00
2013-05-27 22:19:01 +00:00
2013-05-13 18:34:33 +00:00
2012-10-22 02:12:15 +00:00
2013-05-22 19:00:05 +00:00
2013-05-13 15:00:36 +00:00
2013-02-20 12:40:26 +00:00
2013-03-18 23:22:47 +00:00
2012-12-21 04:44:40 +00:00
2013-04-11 18:46:41 +00:00
2012-12-21 15:54:13 +00:00
2013-01-09 21:07:08 +00:00
2013-02-10 17:58:44 +00:00
2013-04-21 22:47:24 +00:00
2013-05-03 23:51:32 +00:00
2013-05-23 19:50:36 +00:00
2013-05-12 01:58:04 +00:00
2012-11-18 16:33:51 +00:00
2013-05-01 22:50:45 +00:00
2013-04-09 06:50:11 +00:00
2013-04-04 12:03:30 +00:00
2013-05-17 14:05:31 +00:00
2013-03-10 17:10:16 +00:00
2013-05-18 19:18:03 +00:00
2013-05-06 18:30:49 +00:00
2012-10-19 14:49:42 +00:00
2012-10-19 14:49:42 +00:00
2013-05-13 18:13:50 +00:00
2013-04-17 11:40:10 +00:00
2013-05-13 18:13:50 +00:00
2012-10-19 14:49:42 +00:00
2013-04-07 15:33:06 +00:00
2012-10-19 14:49:42 +00:00
2012-11-18 16:58:08 +00:00
2012-12-21 15:54:13 +00:00
2013-05-03 23:51:32 +00:00
2013-05-06 17:21:28 +00:00
2013-05-28 13:54:26 +00:00
2013-02-16 20:17:31 +00:00
2012-12-12 01:50:58 +00:00
2013-04-11 18:46:41 +00:00
2013-04-27 13:26:35 +00:00
2013-02-08 11:14:01 +00:00
2013-01-30 18:24:29 +00:00
2013-05-30 21:24:33 +00:00
2013-04-22 18:31:39 +00:00
2013-03-04 11:34:31 +00:00
2013-05-13 18:13:50 +00:00
2013-03-13 12:23:14 +00:00
2013-05-11 13:32:38 +00:00
2013-05-12 22:22:12 +00:00
2013-04-08 08:05:15 +00:00
2013-05-11 20:55:14 +00:00
2012-12-21 15:54:13 +00:00
2013-04-04 09:21:24 +00:00
2013-01-09 04:02:23 +00:00
2012-12-30 14:35:00 +00:00
2012-10-18 12:04:56 +00:00
2012-10-18 12:04:56 +00:00
2012-12-30 14:35:00 +00:00