comparison src/event-Xt.c @ 2956:ee35a8fdcfcd

[xemacs-hg @ 2005-09-27 05:29:41 by ben] fix compilation warnings text.c, event-Xt.c, lisp.h, number-gmp.c, number-gmp.h: Fix compilation warnings. A couple of changes of new -> new_, 'foo -> `foo'.
author ben
date Tue, 27 Sep 2005 05:29:45 +0000
parents ade0c13d91a3
children 4c038e89d563
comparison
equal deleted inserted replaced
2955:4d269e525e21 2956:ee35a8fdcfcd
1312 while (*data) 1312 while (*data)
1313 { 1313 {
1314 Ibyte *dataint; 1314 Ibyte *dataint;
1315 len = strlen (data); 1315 len = strlen (data);
1316 EXTERNAL_TO_C_STRING (data, dataint, Qfile_name); 1316 EXTERNAL_TO_C_STRING (data, dataint, Qfile_name);
1317 hurl = dnd_url_hexify_string (dataint, "file:"); 1317 hurl = dnd_url_hexify_string (dataint,
1318 (const Ibyte *) "file:");
1318 l_item = build_intstring (hurl); 1319 l_item = build_intstring (hurl);
1319 l_dndlist = Fcons (l_item, l_dndlist); 1320 l_dndlist = Fcons (l_item, l_dndlist);
1320 data += len + 1; 1321 data += len + 1;
1321 xfree (hurl, Ibyte *); 1322 xfree (hurl, Ibyte *);
1322 } 1323 }
3142 /* This mess is a hack that patches the shell widget to treat visual inheritance 3143 /* This mess is a hack that patches the shell widget to treat visual inheritance
3143 the same as colormap and depth inheritance */ 3144 the same as colormap and depth inheritance */
3144 3145
3145 static XtInitProc orig_shell_init_proc; 3146 static XtInitProc orig_shell_init_proc;
3146 3147
3147 static void ShellVisualPatch(Widget wanted, Widget new, 3148 static void ShellVisualPatch(Widget wanted, Widget new_,
3148 ArgList args, Cardinal *num_args) 3149 ArgList args, Cardinal *num_args)
3149 { 3150 {
3150 Widget p; 3151 Widget p;
3151 ShellWidget w = (ShellWidget) new; 3152 ShellWidget w = (ShellWidget) new_;
3152 3153
3153 /* first, call the original setup */ 3154 /* first, call the original setup */
3154 (*orig_shell_init_proc)(wanted, new, args, num_args); 3155 (*orig_shell_init_proc)(wanted, new_, args, num_args);
3155 3156
3156 /* if the visual isn't explicitly set, grab it from the nearest shell ancestor */ 3157 /* if the visual isn't explicitly set, grab it from the nearest shell ancestor */
3157 if (w->shell.visual == CopyFromParent) { 3158 if (w->shell.visual == CopyFromParent) {
3158 p = XtParent(w); 3159 p = XtParent(w);
3159 while (p && !XtIsShell(p)) p = XtParent(p); 3160 while (p && !XtIsShell(p)) p = XtParent(p);