patch-callbacks_c 982 B

12345678910111213141516171819202122232425262728293031
  1. $OpenBSD: patch-callbacks_c,v 1.1 2002/04/26 01:44:08 espie Exp $
  2. --- callbacks.c.orig Sun Apr 21 00:44:47 2002
  3. +++ callbacks.c Sun Apr 21 00:54:26 2002
  4. @@ -96,7 +96,7 @@ popup_dialog(w, client_data, call_data)
  5. }
  6. #endif
  7. - mode = (int) client_data;
  8. + mode = * ((int *) client_data);
  9. switch (mode) {
  10. case PRINT_WHOLE:
  11. case PRINT_MARKED:
  12. @@ -317,7 +317,7 @@ set_magstep(w, client_data, call_data)
  13. Widget w;
  14. XtPointer client_data, call_data;
  15. {
  16. - app_res.magstep = (int)client_data;
  17. + app_res.magstep = * ((int *)client_data);
  18. if (set_new_magstep()) {
  19. layout_ghostview();
  20. show_page(current_page);
  21. @@ -375,7 +375,7 @@ set_pagemedia(w, client_data, call_data)
  22. Widget w;
  23. XtPointer client_data, call_data;
  24. {
  25. - int new_pagemedia = (int) client_data;
  26. + int new_pagemedia = * ((int *)client_data);
  27. if (new_pagemedia >= base_papersize) {
  28. default_pagemedia = new_pagemedia;
  29. app_res.force_pagemedia = force_setting;