~ubuntu-branches/ubuntu/lucid/xmakemol/lucid

« back to all changes in this revision

Viewing changes to file.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2006-07-25 02:10:50 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725021050-p53ej2kl3qtgy2xl
Tags: 5.15-1
* New upstream release.
* Acknowledge NMUs; closes: #346267, #337468.
* debian/control (Build-Depends): Replace xlibmesa-gl-dev with
  libgl1-mesa-swx11-dev; closes: #379311.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
3
 
Copyright (C) 1997, 98, 99, 2000 Matthew P. Hodges
 
3
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Matthew P. Hodges
4
4
This file is part of XMakemol.
5
5
 
6
6
XMakemol is free software; you can redistribute it and/or modify
67
67
struct frame * get_first_frame (void);
68
68
XmString get_current_directory (void);
69
69
void set_current_directory (XmString dir);
 
70
void place_dialog_cb (Widget, XtPointer, XtPointer);
70
71
 
71
72
static int no_elements;
72
73
static int bond_adjacency_lists_allocated_size;
175
176
    XtVaSetValues (o_dialog, XmNdirectory, get_current_directory (), NULL);
176
177
    XmFileSelectionDoSearch (o_dialog, NULL);
177
178
 
 
179
    XtAddCallback (o_dialog, XmNmapCallback, place_dialog_cb, NULL);
 
180
 
178
181
    XtManageChild (o_dialog);
179
182
    XtPopup (XtParent (o_dialog), XtGrabNone);
180
183
    break;
233
236
    XtVaSetValues (s_dialog, XmNdirectory, get_current_directory (), NULL);
234
237
    XmFileSelectionDoSearch (s_dialog, NULL);
235
238
      
 
239
    XtAddCallback (s_dialog, XmNmapCallback, place_dialog_cb, NULL);
 
240
 
236
241
    XtManageChild (s_dialog);
237
242
    XtPopup (XtParent (s_dialog), XtGrabNone);
238
243
    break;
293
298
    XtVaSetValues (m_dialog, XmNdirectory, get_current_directory (), NULL);
294
299
    XmFileSelectionDoSearch (m_dialog, NULL);
295
300
    
 
301
    XtAddCallback (m_dialog, XmNmapCallback, place_dialog_cb, NULL);
 
302
 
296
303
    XtManageChild (m_dialog);
297
304
    XtPopup (XtParent (m_dialog), XtGrabNone);
298
305
    break;
377
384
    XtVaSetValues (e_dialog, XmNdirectory, get_current_directory (), NULL);
378
385
    XmFileSelectionDoSearch (e_dialog, NULL);
379
386
      
 
387
    XtAddCallback (e_dialog, XmNmapCallback, place_dialog_cb, NULL);
 
388
 
380
389
    XtManageChild (e_dialog);
381
390
    XtPopup (XtParent (e_dialog), XtGrabNone);
382
391
    break;
594
603
      XtVaSetValues(temp_widget, XmNlabelString, title, NULL);
595
604
      XmStringFree(title);
596
605
    }
 
606
 
 
607
      XtAddCallback (p_dialog, XmNmapCallback, place_dialog_cb, NULL);
 
608
 
597
609
    XtManageChild (p_dialog);
598
610
    XtPopup (XtParent (p_dialog), XtGrabNone);
599
611
    break;