Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

C/Motif code works on SunOS, not Linux

Posted on 2006-03-30
3
Medium Priority
?
217 Views
Last Modified: 2010-04-22
Any idea why the following code runs correctly on SunOS but not on Linux? When running under Linux the filter for the File Selection Box simply doesn't give any files. A simply filter string such as *.pat* works OK, but not the more complicated case here. I'm running Redhat 2.4.21-27.

static Widget pat_file_dialog;

  if (pat_file_dialog == NULL) {
    XmString pat_filter = XmStringCreateLocalized ("*.(pat*|epat*)");
   
    pat_file_dialog = XmCreateFileSelectionDialog (toplevel, "open_pat", NULL, 0);
    XtVaSetValues (pat_file_dialog,
               XmNdialogTitle, XmStringCreateLocalized ("Select Pat(e) File to Display"),
               NULL);
    XtAddCallback (pat_file_dialog, XmNokCallback, open_pat_cb, NULL);
    XtAddCallback (pat_file_dialog, XmNcancelCallback, popdown_cb, (XtPointer)0);
    XtUnmanageChild (XmFileSelectionBoxGetChild (vcd_file_dialog, XmDIALOG_HELP_BUTTON));
    XmFileSelectionDoSearch (pat_file_dialog, pat_filter);
    XmStringFree (pat_filter);
  }
  XtManageChild (pat_file_dialog);

Thanks,
jimdgar
0
Comment
Question by:jimdgar
1 Comment
 
LVL 35

Accepted Solution

by:
Duncan Roe earned 1000 total points
ID: 16347758
Motif didn't use to be free and didn't generally come with Linux distros. Maybe you have LessTiff (which is free). Maybe you have found a defect in it. OTOH if you don't have LessTiff, maybe you should try it. Sorry, I'm not really an X programmer (ony Tk) so I'm just putting out some ideas.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question