~ubuntu-branches/ubuntu/natty/ibm-3270/natty

« back to all changes in this revision

Viewing changes to x3270/dialog.c

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2009-12-14 11:48:53 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091214114853-mywixml32hct9jr1
Tags: 3.3.10ga4-2
* Fix section to match override.
* Use debhelper compat level 7.
* Use 3.0 (quilt) source format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Modifications Copyright 1996, 1999, 2000, 2001, 2002, 2003 by Paul Mattes.
3
 
 * Copyright October 1995 by Dick Altenbern.
4
 
 * Based in part on code Copyright 1993, 1994, 1995 by Paul Mattes.
5
 
 *  Permission to use, copy, modify, and distribute this software and its
6
 
 *  documentation for any purpose and without fee is hereby granted,
7
 
 *  provided that the above copyright notice appear in all copies and that
8
 
 *  both that copyright notice and this permission notice appear in
9
 
 *  supporting documentation.
10
 
 *
11
 
 * x3270 is distributed in the hope that it will be useful, but WITHOUT ANY
12
 
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 
 * FOR A PARTICULAR PURPOSE.  See the file LICENSE for more details.
 
2
 * Copyright (c) 1996-2009, Paul Mattes.
 
3
 * Copyright (c) 1995, Dick Altenbern.
 
4
 * All rights reserved.
 
5
 * 
 
6
 * Redistribution and use in source and binary forms, with or without
 
7
 * modification, are permitted provided that the following conditions
 
8
 * are met:
 
9
 *     * Redistributions of source code must retain the above copyright
 
10
 *       notice, this list of conditions and the following disclaimer.
 
11
 *     * Redistributions in binary form must reproduce the above copyright
 
12
 *       notice, this list of conditions and the following disclaimer in the
 
13
 *       documentation and/or other materials provided with the distribution.
 
14
 *     * Neither the names of Paul Mattes, Dick Altenbern nor their
 
15
 *       contributors may be used to endorse or promote products derived
 
16
 *       from this software without specific prior written permission.
 
17
 * 
 
18
 * THIS SOFTWARE IS PROVIDED BY PAUL MATTES AND DICK ALTENBERN "AS IS"
 
19
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 
20
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 
21
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PAUL MATTES OR DICK ALTENBERN
 
22
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 
23
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 
24
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 
25
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 
26
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 
27
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 
28
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
29
 */
15
30
 
16
31
/*
132
147
 */
133
148
void
134
149
dialog_text_callback(Widget w, XtPointer client_data,
135
 
    XtPointer call_data unused)
 
150
    XtPointer call_data _is_unused)
136
151
{
137
152
        XawTextBlock b;         /* firstPos, length, ptr, format */
138
153
        static XawTextBlock nullb = { 0, 0, NULL };
311
326
 
312
327
/* Proceed to the next input field. */
313
328
void
314
 
PA_dialog_next_action(Widget w, XEvent *event unused, String *parms unused,
315
 
        Cardinal *num_parms unused)
 
329
PA_dialog_next_action(Widget w, XEvent *event _is_unused, String *parms _is_unused,
 
330
        Cardinal *num_parms _is_unused)
316
331
{
317
332
        sr_t *s;
318
333
 
326
341
 
327
342
/* Set keyboard focus to an input field. */
328
343
void
329
 
PA_dialog_focus_action(Widget w, XEvent *event unused, String *parms unused,
330
 
        Cardinal *num_parms unused)
 
344
PA_dialog_focus_action(Widget w, XEvent *event _is_unused, String *parms _is_unused,
 
345
        Cardinal *num_parms _is_unused)
331
346
{
332
347
        sr_t *s;
333
348