Hacking motif 2.1 (for SGI-like look)

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
Hacking motif 2.1 (for SGI-like look)

Submitted by Anonymous on Mon, 09/30/2002 - 17:56. Developers
Recently, since Erik Masson (Indigo Magic Desktop 4 Linux) seems to drop odff the face of the Earth, I started hacking Xm source.

I`m making big progress, but here are some issues I would like to have help on

Issue 1.
_XmBB_CreatePushButtonG (BBUtil.c), simple changing CreatePushButtonGadget(bb,...) to CreatePushButton did the lovely trick of having (hacked) lovely looking PushButtons with outlines working in dialog boxes... except XmFileSelectionBox. That is, normally when you were browsing directories, filter button callback was in use each time you entered dir- after change nothing happens, list is "locked". How to fix that?

Issue 2.
ScrolledText and ScrolledList, I decided to put XmScrolledWindow into XmSHADOW_INed frame, looks great, as long as XmATTACH_POSITION is not used. In such case, the frame is not attached correctly, if at all (top-left window corner, default sizes). Why?

Issue 3.
I would like to hack some *Gadgets, like for example toggles to have more colors etc. Question when should I create new GCs, so it won`t end with segfault?

Issue 3b.
How and when can I safetly query xrdb for colors?

If anybody is interested, I would love to "trade" my hacks for others so far the list is
- XmScrollBar (including behaviour)
- XmScale (small changes, but awesome look)
- XmTextField (SGI like, with shadow outline of parent top and bottom shadows (if available, static workaround if not)
- Strokes instead of underlines (first thing I did ) )

Rambo

Anonymous

ow, and PushButtons too )

Mike_S

I`ve been using Eric`s 5Dwm for a while and I must say I really like it.

Where is your project? Are you going to release it? Including source code?

Another question, where do I get the small IRIX font? The small fixed font which is used in data input boxes etc...

Thanks...

/ Joda

Anonymous

I`ve been told to hold the release of anything (for now), since SGI people have other plans for Motif (what? I heard nothing, I know nothing, I say nothing ) )...

Well, though, after studying Open Motif licence I found nothing about releasing such patches being illegal (and as long it won`t be affiliated with SGI properitary trademarks, it`s ok for them too), you`re welcome, though you have to compile this thing alone (works for me- quite stable, lacks features... no fuss about... LOOKS AWESOME ) ).

Rambo