aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xfig/files/patch-w_fontpanel.c
blob: 1ddf0d4ab2be2804d76681b321e5b98f2f4a27d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- w_fontpanel.c.orig  Fri Feb 24 12:23:06 2006
+++ w_fontpanel.c
@@ -183,7 +183,7 @@
     ps_cancel = XtCreateManagedWidget("cancel", commandWidgetClass,
                    ps_form, Args, ArgCount);
     XtAddEventHandler(ps_cancel, ButtonReleaseMask, False,
-             fontpane_cancel, (XtPointer) NULL);
+             (XtEventHandler)fontpane_cancel, (XtPointer) NULL);
 
     /* button to switch to the LaTeX fonts */
     FirstArg(XtNlabel, " Use LaTex Fonts ");
@@ -197,7 +197,7 @@
     tmp_but = XtCreateManagedWidget("use_latex_fonts", commandWidgetClass,
                    ps_form, Args, ArgCount);
     XtAddEventHandler(tmp_but, ButtonReleaseMask, False,
-             fontpane_swap, (XtPointer) NULL);
+             (XtEventHandler)fontpane_swap, (XtPointer) NULL);
 
     /* now make the LaTeX font image buttons */
     FirstArg(XtNwidth, LATEX_FONTPANE_WD);
@@ -227,7 +227,7 @@
     latex_cancel = XtCreateManagedWidget("cancel", commandWidgetClass,
                    latex_form, Args, ArgCount);
     XtAddEventHandler(latex_cancel, ButtonReleaseMask, False,
-             fontpane_cancel, (XtPointer) NULL);
+             (XtEventHandler)fontpane_cancel, (XtPointer) NULL);
 
     /* button to switch to the PostScript fonts */
     FirstArg(XtNlabel, " Use PostScript Fonts ");
@@ -241,7 +241,7 @@
     tmp_but = XtCreateManagedWidget("use_postscript_fonts", commandWidgetClass,
                    latex_form, Args, ArgCount);
     XtAddEventHandler(tmp_but, ButtonReleaseMask, False,
-             fontpane_swap, (XtPointer) NULL);
+             (XtEventHandler)fontpane_swap, (XtPointer) NULL);
 
     XtInstallAccelerators(ps_form, ps_cancel);
     XtInstallAccelerators(latex_form, latex_cancel);