Re: Shorter filenames in open dialog?
George Ganoe <[email protected]> Tue, 22 Mar 2011 14:40:58 -0400
| Newsgroups | gmane.editors.nedit.user |
|---|---|
| Message-ID | <[email protected]> |
The Xm library is not a part of motif, but it is a dependency of nedit and motif
as well. You need to install that library on your system (it may already be
there) and the -dev files for the libraries as well since you are building nedit
from source.
George
Isaac Raway wrote:
> Well, I wish I knew more about motif... even after installing openmotif4,
> I am getting an error including Xm/Xm.h... any ideas why that might not be
> found?
>
>
> IJR
>
> On Tue, 22 Mar 2011, Isaac Raway wrote:
>
>> Well it looks like Fink is configured to build nedit with lesstif. This seems
>> to be at least part of the issue. I am current building openmotif4 and will
>> rebuild nedit from the tarball after this completes. Hopefully this will fix
>> the issue, or at least give me configuration options ot fix it. Thanks for
>> your help so far... so close!
>>
>>
>> IJR
>>
>> On Mon, 21 Mar 2011, Aaron W. Hsu wrote:
>>
>>> On Mon, 21 Mar 2011 16:12:38 -0400, Isaac Raway <[email protected]>
>>> wrote:
>>>
>>>> Well I haven't had any luck getting this to behave how I would like, so an
>>>> illustration may be in order:
>>>>
>>>> http://blueapples.org/files/nedit_motif_open_dialog.gif
>>>>
>>>> This image shows what I see when I select the File > Open command.
>>> I can see your frustrations now. :-) This is not how my Motif works. I am
>>> using OpenMotif 2.3.3 right now, and I think that you can configure this.
>>> My dialog looks like this:
>>>
>>> http://www.sacrideo.us/~arcfide/tmp/nedit_motif_open_dialog.png
>>>
>>> And that is with the following resource set:
>>>
>>> nedit.stdOpenDialog: true
>>>
>>> However, setting that will not fix your problem.
>>>
>>>> To be honest I am not sure if this is the default Motif dialog or if it is
>>>> "the special nedit open dialog".
>>> This is the NEdit dialog, not the standard one. Notice that it does not
>>> have the file field in the bottom. This is done to encourage a more
>>> efficient workflow of typing the file name directly into the file box, but
>>> I like to have the field there.
>>>
>>>> I had thought it was the default Motif one but perhaps I am wrong - I
>>>> don't use Motif very much and haven't for a long time. How would I go
>>>> about switching to the default dialog if this is not it?
>>> Reading further along in the Motif Reference manuals, I believe that what
>>> you are showing is the "traditional" 1.2 Motif dialog, which has to do with
>>> the XmNPathMode resource. In this case, if you open the file open dialog in
>>> NEdit and then use editres, you can see that there is a "FileSelect"
>>> widget; this is an XmFileSelectionBox, which has the pathMode resource on
>>> it. I will bet that yours is set to 'path_mode_full' which is the old style
>>> 1.2 dialog, which removes an extra filter field and has the full paths in
>>> the dialog box.
>>>
>>> To change this, I used the following in my resource file:
>>>
>>> nedit*FileSelect.pathMode: path_mode_relative
>>>
>>> Which is what my NEdit is set to by default. If I change it to the other I
>>> get the behavior that you experience. So, to put it simply, I have the
>>> following:
>>>
>>> nedit*FileSelect.pathMode: path_mode_relative
>>> nedit.StdOpenDialog: true
>>>
>>> and you have
>>>
>>> nedit*FileSelect.pathMode: path_mode_full
>>> nedit.StdOpenDialog: false
>>>
>>> More or less. What version of Motif are you using? Maybe lesstif does these
>>> things differently than OpenMotif?
>>>
>>> Aaron W. Hsu
>>>
>>> --
>>> Programming is just another word for the lost art of thinking.
--
+--------------------------------------------------------------+
| George Ganoe | NASA Langley Research Center |
| AST - Computer Engineer | Electromagnetics & Sensors Branch |
| phone: 757.864.1940 | 8 North Dryden Street |
| fax: 757.864.7891 | Mail Stop 473 |
| B-1299 Rm-113 | Hampton, VA 23681-2199 |
+--------------------------------------------------------------+
--
NEdit Discuss mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/discuss