Xaw3d-1.6.1-fontset.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. diff -up libXaw3d-1.6.1/src/AsciiSink.c.fontset libXaw3d-1.6.1/src/AsciiSink.c
  2. --- libXaw3d-1.6.1/src/AsciiSink.c.fontset 2012-02-01 12:24:00.000000000 -0700
  3. +++ libXaw3d-1.6.1/src/AsciiSink.c 2012-02-25 14:52:46.802779081 -0700
  4. @@ -513,6 +513,8 @@ Initialize(Widget request, Widget new, A
  5. {
  6. AsciiSinkObject sink = (AsciiSinkObject) new;
  7. + if (!sink->ascii_sink.font) XtError("Aborting: no font found\n");
  8. +
  9. GetGC(sink);
  10. sink->ascii_sink.insertCursorOn= CreateInsertCursor(XtScreenOfObject(new));
  11. diff -up libXaw3d-1.6.1/src/Command.c.fontset libXaw3d-1.6.1/src/Command.c
  12. --- libXaw3d-1.6.1/src/Command.c.fontset 2011-09-19 15:42:36.000000000 -0600
  13. +++ libXaw3d-1.6.1/src/Command.c 2012-02-25 14:51:26.075372823 -0700
  14. @@ -218,6 +218,8 @@ Initialize(Widget request, Widget new, A
  15. CommandWidget cbw = (CommandWidget) new;
  16. int shape_event_base, shape_error_base;
  17. + if (!cbw->label.font) XtError("Aborting: no font found\n");
  18. +
  19. if (cbw->command.shape_style != XawShapeRectangle
  20. && !XShapeQueryExtension(XtDisplay(new), &shape_event_base,
  21. &shape_error_base))
  22. diff -up libXaw3d-1.6.1/src/List.c.fontset libXaw3d-1.6.1/src/List.c
  23. --- libXaw3d-1.6.1/src/List.c.fontset 2011-10-09 12:01:20.000000000 -0600
  24. +++ libXaw3d-1.6.1/src/List.c 2012-02-25 14:53:16.327465260 -0700
  25. @@ -362,6 +362,8 @@ Initialize(Widget junk, Widget new, ArgL
  26. {
  27. ListWidget lw = (ListWidget) new;
  28. + if (!lw->list.font) XtError("Aborting: no font found\n");
  29. +
  30. /*
  31. * Initialize all private resources.
  32. */
  33. diff -up libXaw3d-1.6.1/src/SmeBSB.c.fontset libXaw3d-1.6.1/src/SmeBSB.c
  34. --- libXaw3d-1.6.1/src/SmeBSB.c.fontset 2011-09-19 15:42:36.000000000 -0600
  35. +++ libXaw3d-1.6.1/src/SmeBSB.c 2012-02-25 14:50:19.056358107 -0700
  36. @@ -207,6 +207,8 @@ Initialize(Widget request, Widget new, A
  37. else
  38. entry->sme_bsb.label = XtNewString( entry->sme_bsb.label );
  39. + if (!entry->sme_bsb.font) XtError("Aborting: no font found\n");
  40. +
  41. CreateGCs(new);
  42. GetBitmapInfo(new, TRUE); /* Left Bitmap Info */
  43. diff -up libXaw3d-1.6.1/src/Tip.c.fontset libXaw3d-1.6.1/src/Tip.c
  44. --- libXaw3d-1.6.1/src/Tip.c.fontset 2012-02-15 12:10:38.000000000 -0700
  45. +++ libXaw3d-1.6.1/src/Tip.c 2012-02-25 14:50:19.058358017 -0700
  46. @@ -248,6 +248,8 @@ XawTipInitialize(Widget req, Widget w, A
  47. TipWidget tip = (TipWidget)w;
  48. XGCValues values;
  49. + if (!tip->tip.font) XtError("Aborting: no font found\n");
  50. +
  51. tip->tip.timer = 0;
  52. values.foreground = tip->tip.foreground;