/[xforms]/xforms/demos/pmbrowse.c
ViewVC logotype

Diff of /xforms/demos/pmbrowse.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by leeming, Thu Apr 24 09:35:33 2003 UTC revision 1.4 by leeming, Tue Sep 9 00:28:25 2003 UTC
# Line 20  Line 20 
20   */   */
21    
22    
23  /*  /*
24   * Showing the use of non-modal file selector   * Showing the use of non-modal file selector
25   *   *
26   * T.C. Zhao and M. Overmars   * T.C. Zhao and M. Overmars
# Line 62  load_file(const char *fname, void *data) Line 62  load_file(const char *fname, void *data)
62       if (( p = strrchr(fname, '.')))       if (( p = strrchr(fname, '.')))
63           ispix = strcmp(p+1, "xbm") != 0;           ispix = strcmp(p+1, "xbm") != 0;
64    
65       if(ispix)       if(ispix)
66       {       {
67          fl_hide_object(bm);          fl_hide_object(bm);
68          fl_show_object(pm);          fl_show_object(pm);
69          fl_free_pixmap_pixmap(pm);          fl_free_pixmap_pixmap(pm);
70          fl_set_pixmap_file(pm, fname);          fl_set_pixmap_file(pm, fname);
71       }       }
72       else       else
73       {       {
74          fl_hide_object(pm);          fl_hide_object(pm);
75          fl_show_object(bm);          fl_show_object(bm);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26