~ubuntu-branches/ubuntu/vivid/ettercap/vivid-proposed

« back to all changes in this revision

Viewing changes to src/interfaces/curses/widgets/wdg_dialog.c

  • Committer: Package Import Robot
  • Author(s): Barak A. Pearlmutter
  • Date: 2013-01-04 18:16:56 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20130104181656-cwrnpihky3eauthj
Tags: 1:0.7.5.1-1
* update patches
* new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    along with this program; if not, write to the Free Software
18
18
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
19
 
20
 
    $Id: wdg_dialog.c,v 1.7 2003/12/27 18:49:52 alor Exp $
21
20
*/
22
21
 
23
22
#include <wdg.h>
438
437
   /* get the line of the message */
439
438
   wdg_dialog_get_size(wo, &l, &c);
440
439
 
441
 
   /* calculate the lenght of the buttons */
 
440
   /* calculate the length of the buttons */
442
441
   for (i = 0; i < WDG_DIALOG_MAX_BUTTON; i++) 
443
442
      if (ww->buttons[i].selected)
444
443
         c -= strlen(ww->buttons[i].label);
503
502
   if (mouse->y != y + 2 + l - 1)
504
503
      return -WDG_ENOTHANDLED;
505
504
 
506
 
   /* calculate the lenght of the buttons */
 
505
   /* calculate the length of the buttons */
507
506
   for (i = 0; i < WDG_DIALOG_MAX_BUTTON; i++) 
508
507
      if (ww->buttons[i].selected)
509
508
         c -= strlen(ww->buttons[i].label);