summaryrefslogtreecommitdiff
path: root/getfile.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:13 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:13 +0000
commitc059776a3a8a7c760799d1a55c1a130c2179ecc9 (patch)
tree82ffbfb4d920bed078bcd77ebea90f0f2c7ff26e /getfile.c
parente3dfd7a6398174ae8db6a1c0d5e5590d1dabcf31 (diff)
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330
Diffstat (limited to 'getfile.c')
-rw-r--r--getfile.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/getfile.c b/getfile.c
index c72ad33..de2e1f3 100644
--- a/getfile.c
+++ b/getfile.c
@@ -2,7 +2,7 @@
** getfilename.c
**
*/
-/* $XFree86: xc/programs/xgc/getfile.c,v 1.3 2000/02/17 14:00:35 dawes Exp $ */
+/* $XFree86: xc/programs/xgc/getfile.c,v 1.5 2003/05/27 22:27:06 tsi Exp $ */
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
@@ -15,26 +15,22 @@
#include "xgc.h"
-extern XStuff X;
-extern Widget topform;
static Widget popupshell = NULL; /* popup dialog box */
Widget filename_text_widget; /* Widget containing the name of
the file the user has selected */
-extern XtAppContext appcontext;
-static void kill_popup_shell();
+static void kill_popup_shell(void);
void
-get_filename(success,failure)
- void (*success)(); /* what function to call when a filename is
+get_filename(
+ void (*success)(void), /* what function to call when a filename is
chosen */
- void (*failure)(); /* what function to call when the user
+ void (*failure)(void)) /* what function to call when the user
cancels */
{
static Widget popupform; /* form inside shell */
static Widget label; /* "Filename :" */
- static Widget cancel; /* command, select to cancel */
Window dummy1, dummy2;
int x1,y1,x2,y2;
@@ -138,8 +134,8 @@ get_filename(success,failure)
cancelargs[0].value = (XtArgVal) filename_text_widget;
cancelargs[1].value = (XtArgVal) cancelcallbacklist;
- cancel = XtCreateManagedWidget("Cancel",commandWidgetClass,popupform,
- cancelargs,XtNumber(cancelargs));
+ (void) XtCreateManagedWidget("Cancel",commandWidgetClass,popupform,
+ cancelargs,XtNumber(cancelargs));
/* Bring up the popup. When the user presses cancel or the return key,
** the function kill_popup_shell (below) will be called to remove it. */
@@ -153,7 +149,7 @@ get_filename(success,failure)
*/
static void
-kill_popup_shell()
+kill_popup_shell(void)
{
XtPopdown(popupshell);
}