Changeset 1912 for trunk/mcgui.pl
- Timestamp:
- 03/19/07 11:17:36 (5 years ago)
- Files:
-
- 1 modified
-
trunk/mcgui.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mcgui.pl
r1911 r1912 194 194 spawn_external($w,$cmd); 195 195 } 196 197 sub menu_spawn_internal_editor { 198 my ($w) = @_; 199 my $cmd = "mcgui$suffix --edit $current_sim_def"; 200 if ($external_editor eq "no") { return 0; } 201 # Must be handled differently on Win32 vs. unix platforms... 202 spawn_external($w,$cmd); 203 } 204 196 205 197 206 sub menu_spawn_mcdaemon { … … 1430 1439 -underline => 0, 1431 1440 -command => \&menu_edit_current); 1441 $filemenu->command(-label => 'Edit current/New (detached)', 1442 -underline => 0, 1443 -command => sub { menu_spawn_internal_editor($w) } ); 1432 1444 if($external_editor) { 1433 1445 my $shortname = (split " ", $external_editor)[0]; … … 1857 1869 $open_editor = 1; 1858 1870 # menu_edit_current($win); 1859 } else { 1871 } elsif ($ARGV[$j] eq "--edit") { 1872 $open_editor = 1; 1873 $win->withdraw; 1874 } else { 1860 1875 $filenames = "$ARGV[$j]"; 1861 1876 }
